Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/share/mk Approved by thorpej:



details:   https://anonhg.NetBSD.org/src/rev/2d36fdc5b06e
branches:  netbsd-1-5
changeset: 488744:2d36fdc5b06e
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Wed Jul 26 23:15:49 2000 +0000

description:
Approved by thorpej:
Add support for building PIC on sparc64.

sharesrc/share/mk/bsd.lib.mk                            1.173 -> 1.174

diffstat:

 share/mk/bsd.lib.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r aeca72a5675c -r 2d36fdc5b06e share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Wed Jul 26 23:14:17 2000 +0000
+++ b/share/mk/bsd.lib.mk       Wed Jul 26 23:15:49 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.169.2.1 2000/06/29 23:35:08 thorpej Exp $
+#      $NetBSD: bsd.lib.mk,v 1.169.2.2 2000/07/26 23:15:49 mycroft Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .if !target(__initialized__)
@@ -95,6 +95,13 @@
 CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
 APICFLAGS ?= -KPIC
 
+.elif ${MACHINE_ARCH} == "sparc64" && ${OBJECT_FMT} == "ELF"
+
+CPICFLAGS ?= -fPIC -DPIC
+CPPPICFLAGS?= -DPIC 
+CAPICFLAGS?= ${CPPPICFLAGS} ${CPICFLAGS}
+APICFLAGS ?= -KPIC
+
 .else
 
 # Platform-independent flags for NetBSD a.out shared libraries (and PowerPC)



Home | Main Index | Thread Index | Old Index