summaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-09-25 13:04:31 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-09-25 13:04:31 +0000
commit431a2809a8044bfcc58e0ae544edaf5126ad083a (patch)
treeee098f85ce2de551c639b4f7348d37856878963f /share/mk
parent67a47b0b605b9b5fcd167d42f1e3178536c83b2a (diff)
Add an ASPICFLAG variable to bsd.own.mk which a platform use to pass flags
to 'as' to make it compile pic. add defaults for sparc64 which needs picflags set to -fPIC and ASPICFLAGS to -KPIC. Also simplifies the systemcall generation for sparc64 PIC mode. ok epsie@.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.own.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 0335250ce0a..e62f0998f54 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.own.mk,v 1.57 2001/09/25 10:26:40 espie Exp $
+# $OpenBSD: bsd.own.mk,v 1.58 2001/09/25 13:04:30 drahn Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
@@ -113,6 +113,14 @@ STATIC?= -static
NOPIC=
.endif
+#pic relocation flags.
+.if (${MACHINE_ARCH} == "sparc64")
+PICFLAG=-fPIC
+ASPICFLAG=-KPIC
+.else
+ASPICFLAG=-k
+.endif
+
# don't try to generate PROFILED versions of libraries on machines
# which don't support profiling.
# to add this back use the following line