diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-04-17 16:36:24 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-04-17 16:36:24 +0000 |
commit | 00fe1dfea9c275a82b3f96f1e7cccc1c80cd1001 (patch) | |
tree | 7f9bb2adbb37fa589edba9bdeb2fd7ce0fdf4c10 /share | |
parent | 89698d6d65c84da251c9134fc8e5795d4f81cebf (diff) |
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@
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.own.mk | 5 |
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 |