From: Ben Gras Date: Wed, 11 Jun 2014 15:06:15 +0000 (+0200) Subject: force C++ executables to be dynamic X-Git-Tag: v3.3.0~437 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/invmod.png?a=commitdiff_plain;h=18e90974b2357e1beca808738e155237c7b4e7de;p=minix.git force C++ executables to be dynamic . for C++ exceptions when built with llvm and using libunwind Change-Id: I22fe6a1fd0b2af7323c7deecce919764e2354614 --- diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index d4a390158..dc41895db 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -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)