summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoongsuk Cho <ws77.cho@samsung.com>2019-05-09 18:02:22 +0900
committerKonstantin Baladurin <k.baladurin@samsung.com>2019-09-24 19:39:57 +0300
commit67c356ce140eb2b07acfecc1f434062d21c055f4 (patch)
tree01e511460ef6400d3c94a473c3534d286fef3ac9
parent88c5a0f794577fd5296c5a75b7deaf3033f26f1b (diff)
downloadcoreclr-67c356ce140eb2b07acfecc1f434062d21c055f4.tar.gz
coreclr-67c356ce140eb2b07acfecc1f434062d21c055f4.tar.bz2
coreclr-67c356ce140eb2b07acfecc1f434062d21c055f4.zip
[Tizen] seperate PIC and PIE to fix x86_64 build error
-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 838846a41c..8b3876def7 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)
-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)