Do not create the new dynamic tags 12/136112/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Jun 2017 06:09:43 +0000 (15:09 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Jun 2017 06:09:43 +0000 (15:09 +0900)
Add linker option:
 -Wl,--disable-new-dtags

Change-Id: I11f6bdd242d915f8af8e25d958b7f1c58d7c508f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
CMakeLists.txt

index a742c61..8baac20 100755 (executable)
@@ -89,7 +89,7 @@ ADD_EXECUTABLE(${LAUNCHPAD_LOADER} ${${LAUNCHPAD_LOADER}_SOURCE_FILES})
 # To support 2.x applications which use their own shared libraries.
 # Since we cannot set LD_LIBRARY_PATH directly by security issue, we make the
 # dynamic linker looks in the CWD forcely.
-TARGET_LINK_LIBRARIES(${LAUNCHPAD_LOADER} "-ldl -Wl,-rpath,:")
+TARGET_LINK_LIBRARIES(${LAUNCHPAD_LOADER} "-ldl -Wl,-rpath,: -Wl,--disable-new-dtags")
 TARGET_LINK_LIBRARIES(${LAUNCHPAD_LOADER} ${${this_target_loader}_LDFLAGS} "-pie")
 SET_TARGET_PROPERTIES(${LAUNCHPAD_LOADER} PROPERTIES COMPILE_FLAGS ${EXTRA_CFLAGS_loader})
 SET_TARGET_PROPERTIES(${LAUNCHPAD_LOADER}