pkgsrc/cross/mingw-w64-x86_64-gcc-bootstrap/Makefile.common
ryoon 3d61d80c27 mingw-w64*: Update to 10.0.0
* Update GCC and binutils to the latest too.
* Try to avoid "undefined reference to `__strcpy_chk'"

Changelog:
v10.0.0: 2022-04-04

Notable changes:

  * New msvcrt10, 20, 40, 70 and 71 import libraries.
  * Drop x86_64 64bit crtdll.dll
  * Updated wine imports
  * Fix intrin.h compatibility with GCC-11
  * _(v)scprintf optimization
  * optimize __ms_vsnprintf for LTO
2023-02-15 20:49:11 +00:00

57 lines
1.9 KiB
Makefile

# $NetBSD: Makefile.common,v 1.12 2023/02/15 20:49:12 ryoon 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
PKGSRC_USE_FORTIFY= no # Avoid "undefined reference to `__strcpy_chk'"
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"