From 18e90974b2357e1beca808738e155237c7b4e7de Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 11 Jun 2014 17:06:15 +0200 Subject: [PATCH] force C++ executables to be dynamic . for C++ exceptions when built with llvm and using libunwind Change-Id: I22fe6a1fd0b2af7323c7deecce919764e2354614 --- share/mk/bsd.prog.mk | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.44.0