From b2c265b1e0dce790faf9d533b73209997ca8d7b6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 8 Dec 2001 02:32:23 +0000 Subject: [PATCH] Separate CFLAGS/CPPFLAGS when using libtool... --- build/top.mk | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/build/top.mk b/build/top.mk index 2cdd701830..5ba4588b8a 100644 --- a/build/top.mk +++ b/build/top.mk @@ -88,19 +88,20 @@ LTFLAGS_MOD = $(@PLAT@_LTFLAGS_MOD) # LINK_LIBS referenced in library and module link commands. LINK_LIBS = $(@PLAT@_LINK_LIBS) -LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTFLAGS) +LTLINK = $(LIBTOOL) --mode=link \ + $(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS) LTCOMPILE_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=compile \ - $(CC) $(CFLAGS) $(CPPFLAGS) $(LIB_DEFS) -c + $(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(LIB_DEFS) -c LTLINK_LIB = $(LIBTOOL) $(LTONLY_LIB) --mode=link \ - $(CC) $(CFLAGS) $(LDFLAGS) $(LTFLAGS_LIB) + $(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_LIB) LTCOMPILE_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=compile \ - $(CC) $(CFLAGS) $(CPPFLAGS) $(MOD_DEFS) -c + $(CC) $(LT_CFLAGS) $(LT_CPPFLAGS) $(MOD_DEFS) -c LTLINK_MOD = $(LIBTOOL) $(LTONLY_MOD) --mode=link \ - $(CC) $(CFLAGS) $(LDFLAGS) $(LTFLAGS_MOD) + $(CC) $(LT_CFLAGS) $(LDFLAGS) $(LTFLAGS_MOD) LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) @@ -194,6 +195,9 @@ CFLAGS = $(AC_CFLAGS) $(DEFS) LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS) LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS) +LT_CFLAGS = $(AC_CFLAGS) +LT_CPPFLAGS = $(DEFS) + all: all-common all-local FORCE install: install-common install-local FORCE clean: clean-common clean-local FORCE -- 2.39.5