Fix build issue of unittest.
authorKIM JungYong <jyong2.kim@samsung.com>
Mon, 8 Aug 2016 08:51:03 +0000 (17:51 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Mon, 8 Aug 2016 11:56:25 +0000 (11:56 +0000)
When notification service unittest build with '-Wl, --as-needed' LDFLAGS,
some build machine building fail.(this flag is default option.)
The default of passing --as-needed can be undone by passing --no-as-needed to the linker.
So, 'Wl, --no-as-needed' flag is added in notification unittest SConscript.

Change-Id: Ifb56d0af433b58fc3bcbbd8938c9c318a21035c4
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10127
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/notification/unittest/SConscript

index 3c77952..f911765 100644 (file)
@@ -59,6 +59,8 @@ notification_test_env.AppendUnique(LIBS = [
 if target_os not in ['windows', 'winrt']:
     notification_test_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x'])
 
+notification_test_env.AppendUnique(LINKFLAGS = ['-Wl,--no-as-needed'])
+
 notification_test_env.AppendUnique(CXXFLAGS = ['-pthread'])
 notification_test_env.AppendUnique(LIBS = ['pthread'])