1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/Mk/bsd.ssp.mk
John Baldwin 0850d05fc0 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
2019-12-20 01:11:41 +00:00

13 lines
279 B
Makefile

# $FreeBSD$
# SSP Support
SSP_Include_MAINTAINER= portmgr@FreeBSD.org
.if !defined(SSP_UNSAFE) && \
(! ${ARCH:Mmips*})
# Overridable as a user may want to use -fstack-protector-all
SSP_CFLAGS?= -fstack-protector-strong
CFLAGS+= ${SSP_CFLAGS}
LDFLAGS+= ${SSP_CFLAGS}
.endif