define _LIBCXXABI_BUILDING_LIBRARY to avoid the same issues as in libcxx
authorrobert <robert@openbsd.org>
Tue, 11 Sep 2018 18:36:58 +0000 (18:36 +0000)
committerrobert <robert@openbsd.org>
Tue, 11 Sep 2018 18:36:58 +0000 (18:36 +0000)
lib/libcxxabi/Makefile

index 943fa0f..ad7d695 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2018/09/11 18:32:56 robert Exp $
+# $OpenBSD: Makefile,v 1.11 2018/09/11 18:36:58 robert Exp $
 
 .include <bsd.own.mk>
 
@@ -49,6 +49,7 @@ SRCS+=                abort_message.cpp \
 
 CPPFLAGS+=     -Wall -I${SHDRDIR} -I${HDRDIR} -I${UHDRDIR}
 CPPFLAGS+=     -D_LIBUNWIND_IS_NATIVE_ONLY
+CPPFLAGS+=     -D_LIBCXXABI_BUILDING_LIBRARY
 CFLAGS+=       -nostdlib -funwind-tables
 CXXFLAGS+=     -nostdlib -nostdinc++ -funwind-tables
 .if empty(CXXFLAGS:M-std=*)