Add -fPIC compiler flag to injected bundle.
authorWonYoung Choi <wy80.choi@samsung.com>
Mon, 18 May 2015 01:55:26 +0000 (10:55 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Mon, 18 May 2015 02:38:50 +0000 (11:38 +0900)
Change-Id: I5a779e8881ae2de4f232159be0f71a1925d4648f

src/bundle/CMakeLists.txt

index 484360a..e46d1b8 100644 (file)
@@ -33,14 +33,25 @@ SET(TARGET_INJECTED_BUNDLE_SRCS
   ${BASE_SRCDIR}/bundle/runtime_ipc_client.cc
 )
 
+# Compiler Flags
+SET(TARGET_INJECTED_BUNDLE_CFLAGS
+  "-fPIC"
+)
+
+# Linker Flags
+SET(TARGET_INJECTED_BUNDLE_LDFLAGS
+  "-ldl"
+)
+
 INCLUDE_DIRECTORIES(${TARGET_INJECTED_BUNDLE_INCS})
+ADD_DEFINITIONS(${TARGET_INJECTED_BUNDLE_CFLAGS})
 ADD_LIBRARY(${TARGET_INJECTED_BUNDLE} SHARED
   ${TARGET_INJECTED_BUNDLE_SRCS}
 )
 TARGET_LINK_LIBRARIES(${TARGET_INJECTED_BUNDLE}
   ${TARGET_INJECTED_BUNDLE_LIBS}
   ${TARGET_COMMON_STATIC}
-  "-ldl"
+  ${TARGET_INJECTED_BUNDLE_LDFLAGS}
 )
 
 SET_TARGET_PROPERTIES(${TARGET_INJECTED_BUNDLE} PROPERTIES