diff options
author | 2015-06-02 04:33:39 +0000 | |
---|---|---|
committer | 2015-06-02 04:33:39 +0000 | |
commit | 476fe334ede0ea2e770e2dab0de272464a72862a (patch) | |
tree | 2dd1acf66bfbf49f2697415d20dbe9660ae89b66 | |
parent | Override pie range constants (well, only VM_PIE_MAX_ADDR) with a variable (diff) | |
download | wireguard-openbsd-476fe334ede0ea2e770e2dab0de272464a72862a.tar.xz wireguard-openbsd-476fe334ede0ea2e770e2dab0de272464a72862a.zip |
Make sparc go PIE (not `static PIE' yet).
-rw-r--r-- | share/mk/bsd.own.mk | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 069357449d6..31213058377 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.own.mk,v 1.168 2015/06/01 17:36:19 miod Exp $ +# $OpenBSD: bsd.own.mk,v 1.169 2015/06/02 04:33:39 miod Exp $ # $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $ # Host-specific overrides @@ -20,10 +20,8 @@ DEBUGLIBS?= no GCC3_ARCH=m88k vax # arm needs binutils-2.17, which still lacks W^X support -# sparc has not been tried -# m88k unknown -# hppa64 unknown -PIE_ARCH=alpha amd64 hppa i386 mips64 mips64el powerpc sh sparc64 +# gcc3 lacks PIE support +PIE_ARCH=alpha amd64 hppa i386 mips64 mips64el powerpc sh sparc sparc64 STATICPIE_ARCH=alpha amd64 hppa i386 mips64 mips64el powerpc sh sparc64 .for _arch in ${MACHINE_ARCH} @@ -139,7 +137,7 @@ ASPICFLAG=-KPIC .endif .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || \ - ${MACHINE_ARCH} == "sparc64" + ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" # big PIE DEFAULT_PIE_DEF=-DPIE_DEFAULT=2 .else |