Source-Changes-HG archive

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

[src/trunk]: src/share/mk Tell gas how to make PIC objects on sparc64.



details:   https://anonhg.NetBSD.org/src/rev/e765eb26a116
branches:  trunk
changeset: 494919:e765eb26a116
user:      eeh <eeh%NetBSD.org@localhost>
date:      Mon Jul 17 16:49:30 2000 +0000

description:
Tell gas how to make PIC objects on sparc64.

diffstat:

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

diffs (23 lines):

diff -r 25e14a8d39fd -r e765eb26a116 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Mon Jul 17 15:29:01 2000 +0000
+++ b/share/mk/bsd.lib.mk       Mon Jul 17 16:49:30 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.173 2000/07/14 19:53:04 christos Exp $
+#      $NetBSD: bsd.lib.mk,v 1.174 2000/07/17 16:49:30 eeh Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .if !target(__initialized__)
@@ -123,6 +123,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