Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2018 00:55:18 +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: r475291 - head/devel/powerpc64-gcc
Message-ID:  <201807250055.w6P0tIQI095340@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb (src,doc committer)
Date: Wed Jul 25 00:55:17 2018
New Revision: 475291
URL: https://svnweb.freebsd.org/changeset/ports/475291

Log:
  Properly set CONFIGURE_TARGET for when amd64 is either the host or target.
  
  CONFIGURE_TARGET is used for --build which is the host performing the
  build.  TARGETARCH is used in powerpc64-gcc/Makefile as the target
  architecture of the binaries generated by the compiler being built.
  When building a non-amd64 target compiler on an amd64 host,
  CONFIGURE_TARGET was set to amd64-unknown-freebsd which confused GCC
  (it breaks compilation of an i386 target compiler on an amd64 host).
  It would also result in setting CONFIGURE_TARGET improperly when
  building an amd64 compiler on a non-amd64 host.  Fix by remapping
  amd64 to x86-64 if the ARCH is amd64 rather than the TARGETARCH.
  
  Reviewed by:	bapt
  Differential Revision:	https://reviews.freebsd.org/D16227

Modified:
  head/devel/powerpc64-gcc/Makefile

Modified: head/devel/powerpc64-gcc/Makefile
==============================================================================
--- head/devel/powerpc64-gcc/Makefile	Wed Jul 25 00:50:53 2018	(r475290)
+++ head/devel/powerpc64-gcc/Makefile	Wed Jul 25 00:55:17 2018	(r475291)
@@ -71,7 +71,7 @@ post-patch:
 	@${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \
 		${WRKSRC}//gcc/Makefile.in
 
-.if ${TARGETARCH} == "amd64"
+.if ${ARCH} == "amd64"
 CONFIGURE_TARGET=	x86_64-unknown-${OPSYS:tl}${OSREL}
 .else
 CONFIGURE_TARGET=	${ARCH}-unknown-${OPSYS:tl}${OSREL}



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