1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r22952: Make sure we look at extra_cflags when building custom targets.

This commit is contained in:
James Peach 2007-05-16 19:23:08 +00:00 committed by Gerald (Jerry) Carter
parent 58551f2f28
commit 2d990cd374

View File

@ -149,9 +149,13 @@ PRIVATE_DEPENDENCIES = \
# End MODULE ldb_tdb
################################################
# NOTE: this rule is broken for some systems when $builddir != $srcdir because
# it hardcodes the use of $<. See smb_build/makefile.pm.
./lib/ldb/common/ldb_modules.o: lib/ldb/common/ldb_modules.c Makefile
@echo Compiling $<
@$(CC) -Iinclude $(CFLAGS) -Ilib/replace -Ilib/talloc -Ilib/ldb/include $(PICFLAG) -DLDBMODULESDIR=\"$(MODULESDIR)/ldb\" -DSHLIBEXT=\"$(SHLIBEXT)\" -c $< -o $@
@$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) \
-DLDBMODULESDIR=\"$(MODULESDIR)/ldb\" -DSHLIBEXT=\"$(SHLIBEXT)\" \
-c $< -o $@
################################################
# Start SUBSYSTEM ldb