Fix the CXXFLAGS 38/88438/1
authorChan Lee <chan45.lee@samsung.com>
Mon, 19 Sep 2016 05:55:31 +0000 (14:55 +0900)
committerChan Lee <chan45.lee@samsung.com>
Mon, 19 Sep 2016 05:55:36 +0000 (14:55 +0900)
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: Ib2ddea16c5c55aac91a9fc0f3ad3634ade76dd15
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
packaging/bluetooth-share.spec

index 0dcaebd..dd616ab 100644 (file)
@@ -74,6 +74,7 @@ export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 
 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"
 
 %cmake . \