Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 00:50:37 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493401 - head/base/gcc
Message-ID:  <201902200050.x1K0obof017591@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb (src,doc committer)
Date: Wed Feb 20 00:50:37 2019
New Revision: 493401
URL: https://svnweb.freebsd.org/changeset/ports/493401

Log:
  Permit base/gcc to be built as a native package.
  
  - Don't require CROSS_TOOLCHAIN and CROSS_SYSROOT.
  - Handle building for an amd64 target which needs x86_64 in
    CONFIGURE_TARGET for similar reasons described in r475291.
  
  Reviewed by:	bapt
  Differential Revision:	https://reviews.freebsd.org/D19129

Modified:
  head/base/gcc/Makefile

Modified: head/base/gcc/Makefile
==============================================================================
--- head/base/gcc/Makefile	Wed Feb 20 00:48:36 2019	(r493400)
+++ head/base/gcc/Makefile	Wed Feb 20 00:50:37 2019	(r493401)
@@ -21,14 +21,6 @@ COMMENT=	GNU Compiler Collection
 LICENSE=	GPLv3 GPLv3RLE
 LICENSE_COMB=	multi
 
-.if !defined(CROSS_TOOLCHAIN)
-.error Please define CROSS_TOOLCHAIN before building
-.endif
-
-.if !defined(CROSS_SYSROOT)
-.error Please define CROSS_SYSROOT before building
-.endif
-
 TARGETARCH=	${ARCH:S/amd64/x86_64/}
 GCC_TARGET=	${TARGETARCH}-unknown-${OPSYS:tl}${OSREL}
 
@@ -66,6 +58,12 @@ INSTALL_TARGET?=	install-gcc
 
 .if ${OSVERSION} >= 1200000
 CONFIGURE_ARGS+= --enable-initfini-array
+.endif
+
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET=	x86_64-unknown-${OPSYS:tl}${OSREL}
+.else
+CONFIGURE_TARGET=	${ARCH}-unknown-${OPSYS:tl}${OSREL}
 .endif
 
 .if ${ARCH} == "amd64" || ${ARCH} == "i386"



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