Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Added a temporary workaround when building librarie...
details: https://anonhg.NetBSD.org/src/rev/81f797f3e8c9
branches: trunk
changeset: 533482:81f797f3e8c9
user: fredette <fredette%NetBSD.org@localhost>
date: Mon Jul 01 19:29:31 2002 +0000
description:
Added a temporary workaround when building libraries for hppa:
link in libgcc to get the millicode routines.
diffstat:
share/mk/bsd.lib.mk | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 6a469e014342 -r 81f797f3e8c9 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Mon Jul 01 19:07:18 2002 +0000
+++ b/share/mk/bsd.lib.mk Mon Jul 01 19:29:31 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.203 2002/05/07 02:06:32 eeh Exp $
+# $NetBSD: bsd.lib.mk,v 1.204 2002/07/01 19:29:31 fredette Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@@ -124,6 +124,17 @@
CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
APICFLAGS ?= -KPIC
+.elif ${MACHINE_ARCH} == "hppa"
+
+FPICFLAGS ?= -fPIC
+CPICFLAGS?= -fPIC -DPIC
+CPPPICFLAGS?= -DPIC
+CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
+APICFLAGS?= -k
+# XXX libraries often need the millicode functions in libgcc.a,
+# so we have to work around the -nostdlib:
+LDADD+= `$(CC) -print-libgcc-file-name`
+
.else
# Platform-independent flags for NetBSD a.out shared libraries
Home |
Main Index |
Thread Index |
Old Index