Fix the CXXFLAGS 40/88240/1 accepted/tizen/common/20160921.161541 accepted/tizen/ivi/20160922.041624 accepted/tizen/mobile/20160922.041543 accepted/tizen/tv/20160922.041613 accepted/tizen/wearable/20160922.041600 submit/tizen/20160921.010208
authorSlava Barinov <v.barinov@samsung.com>
Thu, 15 Sep 2016 11:10:05 +0000 (14:10 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Thu, 15 Sep 2016 11:10:05 +0000 (14:10 +0300)
Without CXXFLAGS the cmake test produces
ld: CMakeFiles/cmTryCompileExec3702791433.dir/testCXXCompiler.cxx.o: relocation R_X86_64_PC32 against undefined symbol `__asan_init' can not be used when making a shared object
for certain builds (e.g. ASan)

Change-Id: I1248c30d83865bfbbb4ef62fbb120eb605c9189c
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/bluetooth-tools.spec

index f960934..ba9c286 100644 (file)
@@ -30,6 +30,7 @@ On/Off bluetooth device
 
 %build
 export CFLAGS+=" -fpie -fvisibility=hidden"
+export CXXFLAGS+=" -fpie -fvisibility=hidden"
 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
 
 %if "%{profile}" == "mobile"