summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoongsuk Cho <ws77.cho@samsung.com>2019-05-09 09:02:22 (GMT)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>2019-05-09 09:25:48 (GMT)
commitf9460326c6c112aa8a0a4c3a86f7981e5bcf5504 (patch)
treec4f4081ca3420b112d5a00529cb35865eff432bb
parent882d5bc27e1ad104b981c8ca85c262a4f5c62df4 (diff)
downloadcoreclr-f9460326c6c112aa8a0a4c3a86f7981e5bcf5504.zip
coreclr-f9460326c6c112aa8a0a4c3a86f7981e5bcf5504.tar.gz
coreclr-f9460326c6c112aa8a0a4c3a86f7981e5bcf5504.tar.bz2
[Tizen] seperate PIC and PIE to fix x86_64 build errorsubmit/tizen/20190509.094820accepted/tizen/unified/20190510.012106
-rw-r--r--src/debug/createdump/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/debug/createdump/CMakeLists.txt b/src/debug/createdump/CMakeLists.txt
index 8c0a044..edad62e 100644
--- a/src/debug/createdump/CMakeLists.txt
+++ b/src/debug/createdump/CMakeLists.txt
@@ -20,8 +20,6 @@ include_directories(BEFORE ${VM_DIR})
add_definitions(-DPAL_STDCPP_COMPAT=1)
-add_compile_options(-fPIE)
-
set(CREATEDUMP_SOURCES
createdump.cpp
crashinfo.cpp
@@ -41,18 +39,22 @@ _add_library(createdump_lib
${CREATEDUMP_SOURCES}
)
+set_property(TARGET createdump_lib PROPERTY COMPILE_FLAGS "-fPIC")
+
_add_library(dnetmemoryenum SHARED
${DNETMEMORYENUM_SOURCES}
${PAL_REDEFINES_FILE}
)
-set_property(TARGET dnetmemoryenum PROPERTY POSITION_INDEPENDENT_CODE ON)
+set_property(TARGET dnetmemoryenum PROPERTY COMPILE_FLAGS "-fPIC")
_add_executable(createdump
main.cpp
${PAL_REDEFINES_FILE}
)
+set_property(TARGET createdump PROPERTY COMPILE_FLAGS "-fPIE")
+
add_dependencies(createdump pal_redefines_file)
add_dependencies(dnetmemoryenum pal_redefines_file)