From 66cc0b1e214bdac9625eed92e6ac85aa69a11dc8 Mon Sep 17 00:00:00 2001 From: James Peach Date: Wed, 16 May 2007 19:23:08 +0000 Subject: r22952: Make sure we look at extra_cflags when building custom targets. (This used to be commit 2d990cd37410cec03fa96767b0cf84d7c17ca9c4) --- source4/lib/ldb/config.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/ldb/config.mk b/source4/lib/ldb/config.mk index e60f51f2d5..3429515025 100644 --- a/source4/lib/ldb/config.mk +++ b/source4/lib/ldb/config.mk @@ -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 -- cgit