force C++ executables to be dynamic

. for C++ exceptions when built with llvm and using libunwind

Change-Id: I22fe6a1fd0b2af7323c7deecce919764e2354614
This commit is contained in:
Ben Gras 2014-06-11 17:06:15 +02:00 committed by Lionel Sambuc
parent d3d33afe9f
commit 18e90974b2

View file

@ -354,6 +354,11 @@ _CCLINKFLAGS=
.if defined(PROG_CXX)
PROG= ${PROG_CXX}
_CCLINK= ${CXX} ${_CCLINKFLAGS}
.if defined(__MINIX)
# BJG - stack unwinding (for C++ exceptions) doesn't work on static executables when built with llvm.
LDSTATIC= -dynamic
.endif # defined(__MINIX)
.endif
.if defined(RUMPPRG)