1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-17 19:39:43 +00:00

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:
John Baldwin 2019-12-20 01:11:41 +00:00
parent 0238f91b09
commit 0850d05fc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520454

View File

@ -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}