svn commit: r554839 - in head/Mk: . Uses

Piotr Kubaj pkubaj at FreeBSD.org
Tue Nov 10 15:42:16 UTC 2020


Author: pkubaj
Date: Tue Nov 10 15:42:15 2020
New Revision: 554839
URL: https://svnweb.freebsd.org/changeset/ports/554839

Log:
  Add powerpc64le since it uses the same CPU models as powerpc64.

Modified:
  head/Mk/Uses/cargo.mk
  head/Mk/bsd.gecko.mk

Modified: head/Mk/Uses/cargo.mk
==============================================================================
--- head/Mk/Uses/cargo.mk	Tue Nov 10 15:07:47 2020	(r554838)
+++ head/Mk/Uses/cargo.mk	Tue Nov 10 15:42:15 2020	(r554839)
@@ -74,7 +74,7 @@ CARGO_ENV+= \
 # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
 .if ${ARCH} == amd64 || ${ARCH} == i386
 RUSTFLAGS+=	${CFLAGS:M-march=*:S/-march=/-C target-cpu=/}
-.elif ${ARCH} == powerpc64
+.elif ${ARCH:Mpowerpc64*}
 RUSTFLAGS+=	${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/:S/power/pwr/}
 .else
 RUSTFLAGS+=	${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/}

Modified: head/Mk/bsd.gecko.mk
==============================================================================
--- head/Mk/bsd.gecko.mk	Tue Nov 10 15:07:47 2020	(r554838)
+++ head/Mk/bsd.gecko.mk	Tue Nov 10 15:42:15 2020	(r554839)
@@ -110,7 +110,7 @@ MOZILLA_PLIST_DIRS?=	bin lib share/pixmaps share/appli
 # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
 .if ${ARCH} == amd64 || ${ARCH} == i386
 RUSTFLAGS+=	${CFLAGS:M-march=*:S/-march=/-C target-cpu=/}
-.elif ${ARCH} == powerpc64
+.elif ${ARCH:Mpowerpc64*}
 RUSTFLAGS+=	${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/:S/power/pwr/}
 .else
 RUSTFLAGS+=	${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/}


More information about the svn-ports-head mailing list