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>
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 . \