mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
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
This commit is contained in:
parent
3c92c2f096
commit
4b3a7885ac
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user