Use ARCH instead of MACHINE to check for mips.
Cross-building ports via CROSS_TOOLCHAIN and CROSS_SYSROOT only set ARCH to the target arch. MACHINE still references the host. This unbreaks cross-building ports for mips. Reviewed by: jbeich, portmgr (bapt) Differential Revision: https://reviews.freebsd.org/D22592
This commit is contained in:
parent
0238f91b09
commit
0850d05fc0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520454
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
SSP_Include_MAINTAINER= portmgr@FreeBSD.org
|
||||
|
||||
.if !defined(SSP_UNSAFE) && \
|
||||
(${MACHINE} != "mips")
|
||||
(! ${ARCH:Mmips*})
|
||||
# Overridable as a user may want to use -fstack-protector-all
|
||||
SSP_CFLAGS?= -fstack-protector-strong
|
||||
CFLAGS+= ${SSP_CFLAGS}
|
||||
|
|
Loading…
Reference in a new issue