Partially forward port r517855 | gerald | 2019-11-18 from lang/gcc8-devel:

On versions of FreeBSD that that are new enough and made that switch
  already, use ELFv2 ABI on powerpc64.

PR:		239813
Submitted by:	pkubaj
Reported by:	linimon
This commit is contained in:
Gerald Pfeifer 2019-11-20 07:52:28 +00:00
parent 5d4a45bb3c
commit f545651daa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517994

View File

@ -62,7 +62,11 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
.elif ${ARCH} == powerpc64
CONFIGURE_ENV+= UNAME_m="powerpc64"
. if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
CONFIGURE_ARGS+= --with-abi=elfv2
. else
MAKE_ARGS+= CFLAGS_FOR_TARGET="-O1" CXXFLAGS_FOR_TARGET="-O1" BOOT_CFLAGS="-O1" # PR235975
.endif
.elif ${ARCH} == powerpcspe
CONFIGURE_ARGS+= --with-cpu=8548 --enable-e500_double --without-fp