From: Kurt Zeilenga Date: Sat, 8 Dec 2001 02:32:23 +0000 (+0000) Subject: Separate CFLAGS/CPPFLAGS when using libtool... X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~715 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2c265b1e0dce790faf9d533b73209997ca8d7b6;p=openldap Separate CFLAGS/CPPFLAGS when using libtool... --- 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