diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-03-03 18:06:00 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-03-15 12:22:20 +1100 |
commit | 72ca88d6047e3dcce53c720db866171fb9963914 (patch) | |
tree | 139b9c673c57e1bf454ab6f157958d3bce5d05cc | |
parent | b4d618cc6ff72e2cb097da92f97018e85af286b6 (diff) | |
download | samba-72ca88d6047e3dcce53c720db866171fb9963914.tar.gz samba-72ca88d6047e3dcce53c720db866171fb9963914.tar.bz2 samba-72ca88d6047e3dcce53c720db866171fb9963914.zip |
build: fixed cflags for test_header
when using system libraries, we need the right cflags
-rw-r--r-- | testsuite/headers/wscript_build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/headers/wscript_build b/testsuite/headers/wscript_build index 4d383a117f..b2b88fe4d8 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, |