svn commit: r520454 - head/Mk

John Baldwin jhb at FreeBSD.org
Fri Dec 20 01:11:42 UTC 2019


Author: jhb (src,doc committer)
Date: Fri Dec 20 01:11:41 2019
New Revision: 520454
URL: https://svnweb.freebsd.org/changeset/ports/520454

Log:
  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

Modified:
  head/Mk/bsd.ssp.mk

Modified: head/Mk/bsd.ssp.mk
==============================================================================
--- head/Mk/bsd.ssp.mk	Fri Dec 20 00:02:18 2019	(r520453)
+++ head/Mk/bsd.ssp.mk	Fri Dec 20 01:11:41 2019	(r520454)
@@ -4,7 +4,7 @@
 SSP_Include_MAINTAINER=	portmgr at 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}


More information about the svn-ports-head mailing list