From 1a493c665a96fe3db446324d5c19191f7187e129 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 11 Sep 2018 18:36:58 +0000 Subject: [PATCH] define _LIBCXXABI_BUILDING_LIBRARY to avoid the same issues as in libcxx --- lib/libcxxabi/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libcxxabi/Makefile b/lib/libcxxabi/Makefile index 943fa0f610f..ad7d6959f3b 100644 --- a/lib/libcxxabi/Makefile +++ b/lib/libcxxabi/Makefile @@ -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 @@ -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=*) -- 2.20.1