Permalink
Browse files

Merge pull request #2941 from kinke/sharedPhobos

CMake: Fix silly bug wrt. missing -relocation-model=pic for shared Phobos
  • Loading branch information...
joakim-noah committed Dec 15, 2018
2 parents e2edc3e + 2b9c009 commit 753bd14cff6c5572d714d554b890378775314470
Showing with 1 addition and 1 deletion.
  1. +1 −1 runtime/CMakeLists.txt
@@ -563,7 +563,7 @@ macro(build_runtime_variant d_flags c_flags ld_flags lib_suffix path_suffix all_
# If a shared Phobos lib is generated (too), compile explicitly with `-relocation-model=pic`.
set(phobos2_d_flags "${d_flags}")
if(NOT ${BUILD_SHARED_LIBS} STREQUAL "OFF")
list(APPEND ${phobos2_d_flags} -relocation-model=pic)
list(APPEND phobos2_d_flags -relocation-model=pic)
endif()

set(phobos2_o "")

0 comments on commit 753bd14

Please sign in to comment.