pkgsrc/cross/or1k-none-elf-gcc/Makefile
nia c0f273a8c8 cross: Mark various versions of gcc unsuitable for MKPIE.
This follows lang/gcc* already having it, but the new wrapper behaviour
appears to have resulted in new fallout from these packages
previously being overlooked.

While here, use FORTIFY_SUPPORTED in mingw-w64-gcc instead of
overriding the user's choice of a FORTIFY pkgsrc variable.
2023-08-09 08:24:38 +00:00

65 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2023/08/09 08:24:39 nia Exp $
DISTNAME= gcc-9.1.0
PKGNAME= cross-or1k-none-elf-${DISTNAME}
PKGREVISION= 4
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
NEWLIBVER= 3.1.0
SITES.newlib-${NEWLIBVER}.tar.gz= https://www.sourceware.org/pub/newlib/
DISTFILES= ${DEFAULT_DISTFILES} \
newlib-${NEWLIBVER}.tar.gz
EXTRACT_USING= bsdtar
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= # none
COMMENT= GCC for bare metal OpenRISC 1000 ELF
EXTRACT_SUFX= .tar.xz
# for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33549
# use makeinfo from pkgsrc/devel/gtexinfo.
TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo
_TOOLS_USE_PKGSRC.makeinfo= yes
DEPENDS+= cross-or1k-none-elf-binutils-[0-9]*:../../cross/or1k-none-elf-binutils
USE_LANGUAGES+= c c++
CHECK_PORTABILITY_SKIP+= libgo/mksysinfo.sh
OR1KELF_PREFIX= ${PREFIX}/cross-or1k-none-elf
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ${WRKSRC}/configure
CONFIG_SHELL= ${TOOLS_PATH.bash}
WRAPPER_SHELL= ${TOOLS_PATH.bash}
USE_TOOLS+= bash gmake makeinfo perl
GNU_CONFIGURE= yes
GNU_CONFIGURE_STRICT= no # has sub-configures
CHECK_PORTABILITY_SKIP+= contrib/* # not needed for building
GNU_CONFIGURE_PREFIX= ${OR1KELF_PREFIX}
CONFIGURE_ARGS+= --target=or1k-none-elf
CONFIGURE_ARGS+= --enable-languages=c,c++
CONFIGURE_ARGS+= --with-newlib
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --disable-libstdcxx-pch
INFO_FILES= yes
# Relocations result in a linker error.
MKPIE_SUPPORTED= no
post-extract:
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/newlib ${WRKSRC}/newlib
${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/libgloss ${WRKSRC}/libgloss
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"