summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraichen <graichen@openbsd.org>1997-01-19 22:46:48 +0000
committergraichen <graichen@openbsd.org>1997-01-19 22:46:48 +0000
commit60a7cd6b93e7d2fe829720376ea4620c9d5a5d3a (patch)
treefc0d87e2d9099f953f1a5befad0116d660e4b344
parentdefine NO_WARN_REFERENCES for mips - because the mips linker can't handle (diff)
downloadwireguard-openbsd-60a7cd6b93e7d2fe829720376ea4620c9d5a5d3a.tar.xz
wireguard-openbsd-60a7cd6b93e7d2fe829720376ea4620c9d5a5d3a.zip
work around linker problems on the mips (explicitely link with
-ltermlib)
-rw-r--r--gnu/lib/libg++/libg++/gperf/Makefile.bsd-wrapper6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/lib/libg++/libg++/gperf/Makefile.bsd-wrapper b/gnu/lib/libg++/libg++/gperf/Makefile.bsd-wrapper
index 6306f6de992..c73be4754f3 100644
--- a/gnu/lib/libg++/libg++/gperf/Makefile.bsd-wrapper
+++ b/gnu/lib/libg++/libg++/gperf/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.7 1996/10/27 01:24:08 deraadt Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.8 1997/01/19 22:46:48 graichen Exp $
.if defined(OBJMACHINE)
OBJDIR= obj.${MACHINE}
@@ -47,6 +47,10 @@ LDFLAGS+= -L$(STD_OBJDIR) -L$(GXX_OBJDIR)
# -lg++ to be automatically included. So add it here, no matter what.
LDADD+= -lg++ -lstdc++ -lcurses
+.if (${MACHINE_ARCH} == "mips")
+LDADD+= -ltermlib
+.endif
+
all: $(STD_OBJDIR)/libstdc++.a $(GXX_OBJDIR)/libg++.a
$(STD_OBJDIR)/libstdc++.a: