diff options
author | Arkadiusz Miśkiewicz <arekm@maven.pl> | 2009-02-01 16:10:50 -0600 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2009-02-01 16:10:50 -0600 |
commit | 50a4e5521aabe90afabe334f6bc2de890dc2a90d (patch) | |
tree | 71d45387f7d985edc78887354b253575808ed562 /include | |
parent | 7d1210aa231504de5e97c540b0ee32c151625629 (diff) |
Use explict libtool CC tag
(sometimes libtool can't decide what tag is correct one
if omited).
Preserve CFLAGS/CPPFLAGS to allow:
CPPFLAGS="-I$HOME/here-is-xfsprogs-installed/include" \
LDFLAGS="-L$HOME/here-is-xfsprogs-installed/lib" \
./configure ...
Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/builddefs.in | 4 | ||||
-rw-r--r-- | include/buildmacros | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/builddefs.in b/include/builddefs.in index d855c89e..636f6321 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -11,6 +11,8 @@ DEBUG = @debug_build@ OPTIMIZER = @opt_build@ MALLOCLIB = @malloc_lib@ LOADERFLAGS = @LDFLAGS@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ LIBXFS = @libxfs@ LIBACL = @libacl@ @@ -75,7 +77,7 @@ ifeq ($(PKG_PLATFORM),freebsd) DEPENDFLAGS = -D__FreeBSD__ endif -GCFLAGS = $(OPTIMIZER) $(DEBUG) \ +GCFLAGS = $(OPTIMIZER) $(DEBUG) $(CPPFLAGS) \ -I$(TOPDIR)/include -DVERSION=\"$(PKG_VERSION)\" # Global, Platform, Local CFLAGS diff --git a/include/buildmacros b/include/buildmacros index 801bcb61..276d2c80 100644 --- a/include/buildmacros +++ b/include/buildmacros @@ -41,10 +41,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) |