Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libunwind Allow building with GCC 4.1 by providing <...
details: https://anonhg.NetBSD.org/src/rev/7d2331f49848
branches: trunk
changeset: 327869:7d2331f49848
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Mar 19 16:46:23 2014 +0000
description:
Allow building with GCC 4.1 by providing <cstdint>
diffstat:
sys/lib/libunwind/Makefile.inc | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 44dbe3df186b -r 7d2331f49848 sys/lib/libunwind/Makefile.inc
--- a/sys/lib/libunwind/Makefile.inc Wed Mar 19 15:48:23 2014 +0000
+++ b/sys/lib/libunwind/Makefile.inc Wed Mar 19 16:46:23 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.4 2014/03/13 01:50:50 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.5 2014/03/19 16:46:23 joerg Exp $
.PATH: ${NETBSDSRCDIR}/sys/lib/libunwind
@@ -7,5 +7,15 @@
INCS+= unwind.h
+.if ${HAVE_GCC:U48} == "4"
+CLEANFILES+= cstdint
+DPSRCS+= cstdint
+
+cstdint:
+ echo '#include <stdint.h>' > ${.TARGET}
+
+COPTS.libunwind.cxx+= "-D__builtin_unreachable()=abort()"
+.else
COPTS.libunwind.cxx+= ${${ACTIVE_CXX} == "gcc":? -std=c++0x : -std=c++11 }
+.endif
COPTS.libunwind.cxx+= -funwind-tables -fno-rtti -fno-exceptions -fvisibility=hidden -Wno-old-style-cast
Home |
Main Index |
Thread Index |
Old Index