summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-03-03 18:06:00 +1100
committerAndrew Tridgell <tridge@samba.org>2011-03-15 12:22:20 +1100
commit72ca88d6047e3dcce53c720db866171fb9963914 (patch)
tree139b9c673c57e1bf454ab6f157958d3bce5d05cc /testsuite
parentb4d618cc6ff72e2cb097da92f97018e85af286b6 (diff)
downloadsamba-72ca88d6047e3dcce53c720db866171fb9963914.tar.gz
build: fixed cflags for test_header
when using system libraries, we need the right cflags
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/headers/wscript_build7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/headers/wscript_build b/testsuite/headers/wscript_build
index 4d383a117fd..b2b88fe4d86 100644
--- a/testsuite/headers/wscript_build
+++ b/testsuite/headers/wscript_build
@@ -23,11 +23,18 @@ bld.SAMBA_GENERATOR('test_headers.h',
source=public_headers,
target='test_headers.h')
+cflags=''
+for lib in ['talloc', 'tevent', 'tdb', 'ldb' ]:
+ ename = 'CPPPATH_%s' % lib.upper()
+ for p in bld.env[ename]:
+ cflags += bld.env.CPPPATH_ST % p + ' '
+
if bld.env.DEVELOPER_MODE:
bld.SAMBA_BINARY('test_headers',
source='test_headers.c',
includes="#include/public",
pyembed=True,
+ cflags=cflags,
local_include=True,
global_include=False,
use_global_deps=False,