From 8474b45ce58a1bf6030fdfed041907cdba0fc3e4 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 14 Nov 2010 08:38:38 +0000 Subject: [PATCH] honor custom ldflags when building the rundemo app --- demo/c++/SConscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/c++/SConscript b/demo/c++/SConscript index db736fb6f..34050f56b 100644 --- a/demo/c++/SConscript +++ b/demo/c++/SConscript @@ -30,6 +30,8 @@ source = Split( """ ) +demo_env = env.Clone() + headers = env['CPPPATH'] boost_regex = 'boost_regex%s' % env['BOOST_APPEND'] @@ -48,7 +50,7 @@ if env['PLATFORM'] in ('Darwin','SunOS'): libraries.append(boost_regex) libraries.append(env['ICU_LIB_NAME']) -rundemo = env.Program('rundemo', source, CPPPATH=headers, LIBS=libraries) +rundemo = demo_env.Program('rundemo', source, CPPPATH=headers, LIBS=libraries, LINKFLAGS=env["CUSTOM_LDFLAGS"]) # we don't install this app because the datasource paths are relative # and we're not going to install the sample data.