1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

build: fixed cflags for test_header

when using system libraries, we need the right cflags
This commit is contained in:
Andrew Tridgell 2011-03-03 18:06:00 +11:00
parent b4d618cc6f
commit 72ca88d604

View File

@ -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,