[PATCH 19/20] xfsdump: add support for building with sparse

Christoph Hellwig
2008-12-22T16:44:13Z

[-- Attachment #1: xfsdump-sparse --]
[-- Type: text/plain, Size: 927 bytes --]

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: xfs-cmds/xfsdump/include/buildmacros
===================================================================
--- xfs-cmds.orig/xfsdump/include/buildmacros 2008-11-13 18:31:57.000000000 +0100
+++ xfs-cmds/xfsdump/include/buildmacros 2008-11-13 18:58:13.000000000 +0100
@@ -42,10 +42,10 @@ LIBNAME = $(basename $(LTLIBRARY))
LTOBJECTS = $(OBJECTS:.o=.lo)
LTVERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

-LTLINK = $(LIBTOOL) --mode=link $(CC)
+LTLINK = $(LIBTOOL) --tag=CC --mode=link $(CC)
LTEXEC = $(LIBTOOL) --mode=execute
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
-LTCOMPILE = $(LIBTOOL) --mode=compile $(CCF)
+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CCF)

ifeq ($(ENABLE_SHARED),yes)
LTLDFLAGS += -rpath $(PKG_LIB_DIR)