summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2019-04-17 16:36:23 +0000
committerkettenis <kettenis@openbsd.org>2019-04-17 16:36:23 +0000
commitf937fd63537c57f872c8a72e85abdad0510777d4 (patch)
treeeb4b0412c8d0315ffb3dad5457e7b597e8d4bd93
parentmark up punctuation-as-macro-args properly; (diff)
downloadwireguard-openbsd-f937fd63537c57f872c8a72e85abdad0510777d4.tar.xz
wireguard-openbsd-f937fd63537c57f872c8a72e85abdad0510777d4.zip
Switch powerpc to big PIC. This is necessary to build libc++abi and libc++
since clang doesn't seem to support secure-plt for small pic. ok deraadt@, millert@
-rw-r--r--share/mk/bsd.own.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index cf5a7303784..6ef82027ab2 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.own.mk,v 1.195 2019/04/01 09:48:43 jca Exp $
+# $OpenBSD: bsd.own.mk,v 1.196 2019/04/17 16:36:23 kettenis Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
# Host-specific overrides
@@ -137,7 +137,8 @@ STATIC?= -static ${STATICPIE}
#SYS_INCLUDE= symlinks
# pic relocation flags.
-.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64")
+.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || \
+ ${MACHINE_ARCH} == "sparc64"
PICFLAG?=-fPIC
.else
PICFLAG?=-fpic