summaryrefslogtreecommitdiff
path: root/share/mk/bsd.own.mk
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-08-11 23:13:11 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-08-11 23:13:11 +0000
commitd382e84c3c7beb13bbee71e61c5475bf457d1dd2 (patch)
tree2cfe06e31dd98994de3b80d90e43dea7d03874d7 /share/mk/bsd.own.mk
parentfb6a32c2912aeedcccd7059407d495ad4a6e1421 (diff)
ELF_TOOLCHAIN on sparc.
Also, sparc/ELF needs -KPIC for ASPICFLAG just like sparc64.
Diffstat (limited to 'share/mk/bsd.own.mk')
-rw-r--r--share/mk/bsd.own.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 08b3d38b8ea..a270a8c8157 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.own.mk,v 1.61 2002/08/03 08:10:42 pvalchev Exp $
+# $OpenBSD: bsd.own.mk,v 1.62 2002/08/11 23:13:10 art Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
@@ -31,7 +31,8 @@ AFS?= yes
DEBUGLIBS?= no
# Set toolchain to be able to know differences.
.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || \
- ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "sparc64")
+ ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "sparc64" || \
+ ${MACHINE_ARCH} == "sparc")
ELF_TOOLCHAIN?= yes
.else
ELF_TOOLCHAIN?= no
@@ -117,6 +118,8 @@ NOPIC=
#pic relocation flags.
.if (${MACHINE_ARCH} == "sparc64")
PICFLAG=-fPIC
+.endif
+.if (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "sparc")
ASPICFLAG=-KPIC
.else
ASPICFLAG=-k