Index: head/devel/powerpc64-gcc/Makefile =================================================================== --- head/devel/powerpc64-gcc/Makefile (revision 402615) +++ head/devel/powerpc64-gcc/Makefile (revision 402616) @@ -1,80 +1,80 @@ # $FreeBSD$ PORTNAME= gcc PORTVERSION= 5.2.0 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= devel MASTER_SITES= GCC/releases/gcc-${DISTVERSION} PKGNAMEPREFIX?= powerpc64- MAINTAINER= bapt@FreeBSD.org COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g} LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi USES= gmake iconv libtool tar:bzip2 makeinfo compiler PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \ OPSYS=${OPSYS:tl} \ GCC_TARGET=${GCC_TARGET} \ GCC_VERSION=${PORTVERSION} LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ libmpfr.so:${PORTSDIR}/math/mpfr \ libmpc.so:${PORTSDIR}/math/mpc BUILD_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils RUN_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} WRKSRC= ${WRKDIR}/build-gcc .if empty(GCC_TARGET) # We are building for a FreeBSD target GCC_TARGET?= ${PKGNAMEPREFIX}portbld-${OPSYS:tl}${OSREL} BU_PREFIX?= ${PKGNAMEPREFIX}${OPSYS:tl} EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions .else BU_PREFIX?= ${GCC_TARGET} .if defined(FREEBSD_EXTENSION) EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions .endif .endif GNU_CONFIGURE= yes CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ --without-headers \ --with-gmp=${LOCALBASE} \ --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ --with-system-zlib \ --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld CONFIGURE_SCRIPT= ../${PORTNAME}-${PORTVERSION}/configure ALL_TARGET?= all-gcc INSTALL_TARGET?= install-gcc .include .if ${ARCH} == "amd64" CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL} .else CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL} .endif post-extract: @${MKDIR} ${WRKSRC} post-stage: @if [ -f ${STAGEDIR}${PREFIX}/bin/cpp ] ; then \ mv ${STAGEDIR}${PREFIX}/bin/cpp \ ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-cpp ; \ fi .for f in c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov @${RM} ${STAGEDIR}${PREFIX}/bin/$f @${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1.gz .endfor @${RM} ${STAGEDIR}${PREFIX}/info/* @${RM} ${STAGEDIR}${PREFIX}/man/man7/* .include Index: head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64 =================================================================== --- head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64 (nonexistent) +++ head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64 (revision 402616) @@ -0,0 +1,29 @@ +--- gcc/config/rs6000/freebsd64.h 2015-11-28 09:06:13.019999000 -0800 ++++ gcc/config/rs6000/freebsd64.h 2015-11-28 09:16:10.459373000 -0800 +@@ -65,6 +65,13 @@ + #define INVALID_64BIT "-m%s not supported in this configuration" + #define INVALID_32BIT INVALID_64BIT + ++/* Use LINUX64 instead of FREEBSD64 for compat with e.g. sysv4le.h */ ++#ifdef LINUX64_DEFAULT_ABI_ELFv2 ++#define ELFv2_ABI_CHECK (rs6000_elf_abi != 1) ++#else ++#define ELFv2_ABI_CHECK (rs6000_elf_abi == 2) ++#endif ++ + #undef SUBSUBTARGET_OVERRIDE_OPTIONS + #define SUBSUBTARGET_OVERRIDE_OPTIONS \ + do \ +@@ -84,6 +91,12 @@ + rs6000_isa_flags &= ~OPTION_MASK_RELOCATABLE; \ + error (INVALID_64BIT, "relocatable"); \ + } \ ++ if (ELFv2_ABI_CHECK) \ ++ { \ ++ rs6000_current_abi = ABI_ELFv2; \ ++ if (dot_symbols) \ ++ error ("-mcall-aixdesc incompatible with -mabi=elfv2"); \ ++ } \ + if (rs6000_isa_flags & OPTION_MASK_EABI) \ + { \ + rs6000_isa_flags &= ~OPTION_MASK_EABI; \ Property changes on: head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property