Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 03:15:27 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487016 - head/devel/psptoolchain-pspsdk-stage2
Message-ID:  <201812090315.wB93FRlb058109@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812090315.wB93FRlb058109>