summaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-01-28 02:28:15 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-01-28 02:28:15 +0000
commit1bc8084b50c9d4d14d2d9ddf722b81289c4f42d9 (patch)
tree43d122b5eb6cf31ee9828c47b82ab1eb35ef6df5 /share/mk
parentf3cb4c32ee6cd289f15c2861a3f7cf63e08424bb (diff)
magic switches for hammers
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.own.mk13
1 files changed, 9 insertions, 4 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 85ca9d16d97..497cc92f434 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.own.mk,v 1.71 2003/12/27 23:23:21 espie Exp $
+# $OpenBSD: bsd.own.mk,v 1.72 2004/01/28 02:28:14 mickey Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
@@ -30,14 +30,19 @@ 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} == "sparc" || ${MACHINE_ARCH} == "i386")
+ ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "x86_64")
ELF_TOOLCHAIN?= yes
.else
ELF_TOOLCHAIN?= no
.endif
-# don't use yet.
+# do the dew
+.if (${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "hppa64")
+USE_GCC3?=yes
+.else
USE_GCC3?=no
+.endif
# where the system object and source trees are kept; can be configurable
# by the user in case they want them in ~/foosrc and ~/fooobj, for example
@@ -111,7 +116,7 @@ STATIC?= -static
# don't try to generate PIC versions of libraries on machines
# which don't support PIC.
-.if (${MACHINE_ARCH} == "vax") || \
+.if (${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "x86_64") || \
(${MACHINE_ARCH} == "hppa") || (${MACHINE_ARCH} == "m88k")
NOPIC=
.endif