Module Name: src
Committed By: joerg
Date: Fri Oct 24 22:42:16 UTC 2014
Modified Files:
src/lib/libexecinfo: Makefile
Log Message:
Don't overwrite the real unwind.h if it is present.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libexecinfo/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libexecinfo/Makefile
diff -u src/lib/libexecinfo/Makefile:1.7 src/lib/libexecinfo/Makefile:1.8
--- src/lib/libexecinfo/Makefile:1.7 Wed Oct 22 19:29:31 2014
+++ src/lib/libexecinfo/Makefile Fri Oct 24 22:42:16 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2014/10/22 19:29:31 christos Exp $
+# $NetBSD: Makefile,v 1.8 2014/10/24 22:42:16 joerg Exp $
.include <bsd.own.mk>
@@ -6,7 +6,11 @@ LIBEXECINFO_MACHINE_ARCH?= ${MACHINE_ARC
USE_UNWIND=yes
WARNS?=4
INCSDIR=/usr/include
-INCS=execinfo.h unwind.h
+INCS=execinfo.h
+
+.if ${HAVE_LIBGCC_EH} == "yes"
+INCS+= unwind.h
+.endif
#CPPFLAGS+='-D__RCSID(a)=' -D_GNU_SOURCE '-D__printflike(a,b)='
#CPPFLAGS+=-I/usr/include/libelf