Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2019 09:55:52 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r494921 - head/lang/gcc8
Message-ID:  <201903070955.x279tqse006380@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Thu Mar  7 09:55:52 2019
New Revision: 494921
URL: https://svnweb.freebsd.org/changeset/ports/494921

Log:
  No longer require a not too old version of GCC to build on powerpc64, but
  rely on the system compiler (even if that means we need to be explicitly
  conservative when it comes to optimizations). [1]
  
  Simplify the creation of the multilib-related sub-directory tree on
  powerpc64 and avoid leaving an empty directory behind on the way. [2]
  
  Sync pkg-descr with lang/gcc7-devel, in particular after r442530 there.
  
  PR:		235975 [1], 235964 [2], 231804 [2]
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl> [1]
  Discussed with:	Piotr Kubaj <pkubaj@anongoth.pl> [2]

Modified:
  head/lang/gcc8/Makefile
  head/lang/gcc8/pkg-descr

Modified: head/lang/gcc8/Makefile
==============================================================================
--- head/lang/gcc8/Makefile	Thu Mar  7 09:50:49 2019	(r494920)
+++ head/lang/gcc8/Makefile	Thu Mar  7 09:55:52 2019	(r494921)
@@ -59,9 +59,7 @@ CONFIGURE_TARGET=	x86_64-portbld-${OPSYS:tl}${OSREL}
 
 .elif ${ARCH} == powerpc64
 CONFIGURE_ENV+=	UNAME_m="powerpc64"
-USE_GCC=	5	# This port requires at least GCC 4.9, and we need
-			# to ensure not to cause a dependency on itself (so
-			# USE_GCC=yes or USE_GCC=X+ are not an option).
+MAKE_ARGS+=	CFLAGS_FOR_TARGET="-O1" CXXFLAGS_FOR_TARGET="-O1" BOOT_CFLAGS="-O1" # PR235975
 
 .elif ${ARCH} == powerpcspe
 CONFIGURE_ARGS+=	--with-cpu=8548 --enable-e500_double --without-fp
@@ -140,8 +138,8 @@ post-stage:
 	${RM} ${WRKDIR}/PLIST.lib
 
 .if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MMULTILIB}
-	${MKDIR} ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
-	${MV} ${STAGEDIR}${PREFIX}/lib/lib32/* ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
+	${MKDIR} ${STAGEDIR}${TARGLIB32}
+	${MV} ${STAGEDIR}${PREFIX}/lib/lib32 ${STAGEDIR}${TARGLIB32}/gcc${SUFFIX}
 .endif
 
 .for d in ${TARGLIB:S/^${PREFIX}\///} ${TARGLIB32:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///}

Modified: head/lang/gcc8/pkg-descr
==============================================================================
--- head/lang/gcc8/pkg-descr	Thu Mar  7 09:50:49 2019	(r494920)
+++ head/lang/gcc8/pkg-descr	Thu Mar  7 09:55:52 2019	(r494921)
@@ -1,6 +1,6 @@
-GCC, the GNU Compiler Collection, supports a number of languages.  This
-port installs the C, C++, and Fortran front ends as gcc8, g++8, gfortran8,
-respectively.
+GCC, the GNU Compiler Collection, supports a number of languages.
+This port installs the C, C++, and Fortran front ends as gcc8, g++8,
+and gfortran8, respectively.
 
 WWW: https://gcc.gnu.org
 



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