diff options
| author | redfish <redfish@galactica.pw> | 2016-07-26 02:30:59 +0000 |
|---|---|---|
| committer | redfish <redfish@galactica.pw> | 2016-07-26 02:30:59 +0000 |
| commit | 4b3a7885ac0ecbcf399c7784162751aadd0c90ea (patch) | |
| tree | 6a0239c04b6ef4c7a95f4b4b48cb229f21418293 | |
| parent | 3c92c2f09622df9bc4d5009d593677dc519047bc (diff) | |
| download | monzero-core-4b3a7885ac0ecbcf399c7784162751aadd0c90ea.tar.gz monzero-core-4b3a7885ac0ecbcf399c7784162751aadd0c90ea.tar.xz monzero-core-4b3a7885ac0ecbcf399c7784162751aadd0c90ea.zip | |
cmake: install throw hook in OSX build too
This is an attempt to fix build with STATIC=ON on OSX (#932):
[ 95%] Linking CXX executable ../../bin/bitmonerod Undefined symbols for
architecture x86_64: "___real___cxa_throw", referenced from:
___wrap___cxa_throw in libcommon.a(stack_trace.cpp.o) ld: symbol(s) not found
for architecture x86_64
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6783b5002..0a0e75119 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -423,6 +423,9 @@ else() if(STATIC AND NOT APPLE AND NOT FREEBSD AND NOT OPENBSD) set(COMMON_EXE_LINKER_FLAGS "${COMMON_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") + endif() + + if(STATIC AND NOT FREEBSD AND NOT OPENBSD) # Install hook on throw for dumping stack on exception (implemented in libcommon) set(WRAP_CXA_THROW_FLAG "-Wl,--wrap=__cxa_throw") endif() |
