pkgsrc/cross/mingw-w64-x86_64-gcc-bootstrap/Makefile.common
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

60 lines
2 KiB
Makefile

# $NetBSD: Makefile.common,v 1.13 2023/08/09 08:24:39 nia Exp $
#
# used by cross/mingw-w64-x86_64-gcc-bootstrap/Makefile
# used by cross/mingw-w64-i686-gcc-bootstrap/Makefile
# used by cross/mingw-w64-i686-gcc-bootstrap/Makefile.common
# used by cross/mingw-w64-x86_64-gcc-bootstrap/Makefile.common
DISTNAME= gcc-12.2.0
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mingw-w64.org/
PATCHDIR= ${.CURDIR}/../../cross/mingw-w64-x86_64-gcc/patches
DISTINFO_FILE= ${.CURDIR}/../../cross/mingw-w64-x86_64-gcc/distinfo
FORTIFY_SUPPORTED= no # Avoid "undefined reference to `__strcpy_chk'"
# Relocations result in a linker error.
MKPIE_SUPPORTED= no
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
TOOLS_BROKEN+= perl
GNU_CONFIGURE= yes
GNU_CONFIGURE_STRICT= no # has sub-configures
GNU_CONFIGURE_PREFIX= ${PREFIX}/cross/${MINGW_TARGET}-bootstrap
OBJDIR= ../build
CONFIGURE_DIRS= ${OBJDIR}
CONFIGURE_SCRIPT= ../${DISTNAME}/configure
CONFIGURE_ARGS+= --target=${MINGW_TARGET}
CONFIGURE_ARGS+= --with-sysroot=${PREFIX}/cross/${MINGW_TARGET}
CONFIGURE_ARGS+= --with-ld=${PREFIX}/cross/${MINGW_TARGET}/${MINGW_TARGET}/bin/ld
CONFIGURE_ARGS+= --with-as=${PREFIX}/cross/${MINGW_TARGET}/${MINGW_TARGET}/bin/as
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --enable-languages=c,lto
CONFIGURE_ARGS+= --enable-static
CONFIGURE_ARGS+= --enable-lto
CONFIGURE_ARGS+= --disable-dw2-exceptions
CONFIGURE_ARGS+= --enable-version-specific-runtime-libs
CONFIGURE_ARGS+= --disable-multilib
CONFIGURE_ARGS+= --disable-gcov
CHECK_PORTABILITY_SKIP+= contrib/*
CHECK_PORTABILITY_SKIP+= gcc/config/nvptx/gen-opt.sh
INFO_FILES= yes
BUILD_TARGET= all-gcc
INSTALL_TARGET= install-gcc
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
.include "../../cross/mingw-w64/Makefile.common"
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"