mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 21:50:49 -05:00
Separate CFLAGS/CPPFLAGS when using libtool...
This commit is contained in:
parent
fc6f1f5efb
commit
b2c265b1e0
1 changed files with 9 additions and 5 deletions
14
build/top.mk
14
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue