summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWoongsuk Cho <ws77.cho@samsung.com>2019-05-09 09:02:22 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commita8344f4f0871f2c5887f6f4f152e61c87b3789db (patch)
tree0b5d7ef123a57896b0ceb607526bc45187d8b416 /src
parent7864faae19cefcee12d7fbe335349b6f40a630cd (diff)
downloadcoreclr-a8344f4f0871f2c5887f6f4f152e61c87b3789db.zip
coreclr-a8344f4f0871f2c5887f6f4f152e61c87b3789db.tar.gz
coreclr-a8344f4f0871f2c5887f6f4f152e61c87b3789db.tar.bz2
[Tizen] seperate PIC and PIE to fix x86_64 build error
Diffstat (limited to 'src')
-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 838846a..8b3876d 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)