diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-01-23 15:14:07 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-01-23 15:14:07 +0100 |
commit | 3ce477eb8cf12d1f140721cd4454a23c05c8da0c (patch) | |
tree | 3368c16a60edaf8f451e35cefc072833475943ac /sys-freebsd/freebsd-mk-defs | |
parent | sys-freebsd/freebsd-mk-defs: Remove sparc-fbsd keywords (diff) | |
download | gentoo-3ce477eb8cf12d1f140721cd4454a23c05c8da0c.tar.gz gentoo-3ce477eb8cf12d1f140721cd4454a23c05c8da0c.tar.bz2 gentoo-3ce477eb8cf12d1f140721cd4454a23c05c8da0c.zip |
sys-freebsd/freebsd-mk-defs: Revert "remove unused patch"
Restore the patch needed for restored 9.1.
Diffstat (limited to 'sys-freebsd/freebsd-mk-defs')
-rw-r--r-- | sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch new file mode 100644 index 000000000000..8eb80c38cc7a --- /dev/null +++ b/sys-freebsd/freebsd-mk-defs/files/freebsd-mk-defs-add-nossp-cflags.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/show_bug.cgi?id=511698 + +diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk +index e438633..de4a05b 100644 +--- a/share/mk/bsd.sys.mk ++++ b/share/mk/bsd.sys.mk +@@ -111,12 +111,18 @@ CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\ + CFLAGS+= -Qunused-arguments + .endif # CLANG + +-.if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \ +- ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" ++.if ${MACHINE_CPUARCH} != "ia64" && ${MACHINE_CPUARCH} != "arm" \ ++ && ${MACHINE_CPUARCH} != "mips" ++.if ${MK_SSP} != "no" + # Don't use -Wstack-protector as it breaks world with -Werror. + SSP_CFLAGS?= -fstack-protector ++.else ++# gcc-4.9, -fstack-protector-strong is enabled by default. ++# Add -fno-stack-protector to disable it. Gentoo Bug #511698. ++SSP_CFLAGS= -fno-stack-protector ++.endif #SSP + CFLAGS+= ${SSP_CFLAGS} +-.endif # SSP && !IA64 && !ARM && !MIPS ++.endif # !IA64 && !ARM && !MIPS + + # Allow user-specified additional warning flags + CFLAGS+= ${CWARNFLAGS} |