5c26963bdb
* Update GCC to 10.2.0. * Update Binutils to 2.35.1 Changelog: v8.0.0: 2020-09-18 Notable changes: New Hyper-V headers and libraries by Biswapriyo Nath Many headers updated from Wine by Jacek Caban. ARM math improvements by Martin Storsjo floating point fixes by Liu Hao many *printf compatibility fixes by Liu Hao and Martin Storsjo massive Windows App Store API updates by Steve Lhomme winstorecompat library updates by Martin Storsjo __USE_MINGW_ANSI_STDIO now automatically enabled in C99 and C11 mode when not using UCRT by Pali Rohar wdm and ddk updates by Zebediah Figura UCRT for Windows Store Apps (-lucrtapp) by Martin Storsjo Audioclient and ActivateAudioInterfaceAsync API updates by Liu Hao DirectX SDKs are now always installed
54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
# $NetBSD: Makefile.common,v 1.8 2020/10/02 16:49:36 ryoon Exp $
|
|
#
|
|
# used by cross/mingw-w64-i686-gcc/Makefile
|
|
# used by cross/mingw-w64-x86_64-gcc/Makefile
|
|
|
|
DISTNAME= gcc-10.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
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_TOOLS+= gmake perl:build
|
|
|
|
GNU_CONFIGURE= yes
|
|
OBJDIR= ../build
|
|
CONFIGURE_DIRS= ${OBJDIR}
|
|
CONFIGURE_SCRIPT= ../${DISTNAME}/configure
|
|
GNU_CONFIGURE_PREFIX= ${PREFIX}/cross/${MINGW_TARGET}
|
|
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,c++,objc,obj-c++,fortran
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ARGS+= --enable-static
|
|
# Use win32 thread
|
|
#CONFIGURE_ARGS+= --enable-threads=posix
|
|
CONFIGURE_ARGS+= --enable-lto
|
|
CONFIGURE_ARGS+= --enable-fully-dynamic-string
|
|
CONFIGURE_ARGS+= --enable-libstdcxx-time=yes
|
|
CONFIGURE_ARGS+= --disable-dw2-exceptions
|
|
CONFIGURE_ARGS+= --disable-multilib
|
|
|
|
PREPEND_PATH+= ${PREFIX}/cross/${MINGW_TARGET}/bin
|
|
PREPEND_PATH+= ${PREFIX}/cross/${MINGW_TARGET}-bootstrap/bin
|
|
|
|
INFO_FILES= yes
|
|
|
|
CHECK_PORTABILITY_SKIP+= contrib/*
|
|
|
|
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"
|