svn commit: r487016 - head/devel/psptoolchain-pspsdk-stage2
Steve Wills
swills at FreeBSD.org
Sun Dec 9 03:15:28 UTC 2018
Author: swills
Date: Sun Dec 9 03:15:26 2018
New Revision: 487016
URL: https://svnweb.freebsd.org/changeset/ports/487016
Log:
devel/psptoolchain-pspsdk-stage2: Fix build when -march is set in CFLAGS
PR: 233813
Submitted by: Tassilo Philipp <tphilipp at potion-studios.com> (maintainer)
Modified:
head/devel/psptoolchain-pspsdk-stage2/Makefile (contents, props changed)
Modified: head/devel/psptoolchain-pspsdk-stage2/Makefile
==============================================================================
--- head/devel/psptoolchain-pspsdk-stage2/Makefile Sun Dec 9 03:11:21 2018 (r487015)
+++ head/devel/psptoolchain-pspsdk-stage2/Makefile Sun Dec 9 03:15:26 2018 (r487016)
@@ -15,6 +15,8 @@ BUILD_DEPENDS= psp-cpp:devel/psptoolchain-gcc-stage2
psp-ar:devel/psptoolchain-binutils \
${LOCALBASE}/psp/lib/libc.a:devel/psptoolchain-newlib
+# psp-gcc doesn't need -march=... in CFLAGS (e.g. set by CPUTYPE in make.conf)
+CONFIGURE_ENV= CFLAGS="${CFLAGS:C/(^|[[:space:]])-march=[^[:space:]]*//g}"
CONFIGURE_ARGS= --prefix=${PREFIX} --with-pspdev="${LOCALBASE}"
PLIST= ${.CURDIR}/pkg-plist
More information about the svn-ports-all
mailing list