summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-09-18 09:10:30 +0000
committerkettenis <kettenis@openbsd.org>2011-09-18 09:10:30 +0000
commit0e5b74ae6988cf5fd426bd4a942833f5ba82d530 (patch)
treea070058ac03ad8986fd32d6c1dce9686adeb2262
parentia64 should use gcc4; sort the list of binutils-2.17 platforms while I'm there (diff)
downloadwireguard-openbsd-0e5b74ae6988cf5fd426bd4a942833f5ba82d530.tar.xz
wireguard-openbsd-0e5b74ae6988cf5fd426bd4a942833f5ba82d530.zip
Override LIB2ADDEH on ia64. Probably not quite right, but at least this makes
it possible to build a cross compiler, and we don't really care about exception handling until we have a kernel to run C++ code on anyway.
-rw-r--r--gnu/usr.bin/cc/libgcc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile
index 722770d893d..f985a895335 100644
--- a/gnu/usr.bin/cc/libgcc/Makefile
+++ b/gnu/usr.bin/cc/libgcc/Makefile
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.18 2011/08/04 14:46:58 kettenis Exp $
+# $OpenBSD: Makefile,v 1.19 2011/09/18 09:10:30 kettenis Exp $
.include <bsd.own.mk>
@@ -148,6 +148,10 @@ LIB1ASMSRC = pa/milli64.S
LIB2FUNCS_EXTRA = fptr.c
.endif
+.if ${TARGET_ARCH} == "ia64"
+LIB2ADDEH = unwind-ia64.c unwind-sjlj.c unwind-c.c
+.endif
+
.if ${TARGET_ARCH} == "sh"
CFLAGS+= -fpic
LIB1ASMSRC = sh/lib1funcs.asm