summaryrefslogtreecommitdiff
path: root/source/build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-27 14:46:09 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-27 14:46:09 +0200
commit86ce8bf88acf3f9f9966ccf063bbf46d134ea4ba (patch)
tree5cbfcb0fc9fe52b24dbe50e7055614203a667ab9 /source/build
parent01c0000def9492989c543e7ed6d48c58a3be1854 (diff)
downloadsamba-86ce8bf88acf3f9f9966ccf063bbf46d134ea4ba.tar.gz
Disable CFLAGS hack when include path starts with variable.
Diffstat (limited to 'source/build')
-rw-r--r--source/build/smb_build/makefile.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/build/smb_build/makefile.pm b/source/build/smb_build/makefile.pm
index 0269cfe8a34..e93e3eb767a 100644
--- a/source/build/smb_build/makefile.pm
+++ b/source/build/smb_build/makefile.pm
@@ -262,6 +262,7 @@ sub CFlags($$)
if($src_ne_build) {
if($flag =~ m#^-I([^/].*$)#) {
my $dir = $1;
+ next if ($dir =~ /^\$\(/);
$dir =~ s#^\$\((?:src|build)dir\)/?##;
push(@cflags, "-I$builddir/$dir", "-I$srcdir/$dir");
next;