Permalink
Browse files

CMake: Fix silly bug wrt. missing -relocation-model=pic for shared Ph…

…obos
  • Loading branch information...
kinke committed Dec 15, 2018
1 parent dbd2ba4 commit 2b9c00975e9dba0dd1caeca9e0e8a4c3ffbd5647
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 2b9c009

Please sign in to comment.