# This file is part of MXE. See LICENSE.md for licensing information. PKG := gcc $(PKG)_WEBSITE := https://gcc.gnu.org/ $(PKG)_DESCR := GCC $(PKG)_IGNORE := $(PKG)_VERSION := 11.5.0 $(PKG)_RELEASE := $($(PKG)_VERSION) $(PKG)_CHECKSUM := a6e21868ead545cf87f0c01f84276e4b5281d672098591c1c896241f09363478 $(PKG)_SUBDIR := gcc-$($(PKG)_VERSION) $(PKG)_FILE := gcc-$($(PKG)_VERSION).tar.xz $(PKG)_URL := https://ftp.gnu.org/gnu/gcc/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_URL_2 := https://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := binutils mingw-w64 $(addprefix $(BUILD)~,gmp isl mpc mpfr) define $(PKG)_UPDATE $(WGET) -q -O- 'https://ftp.gnu.org/gnu/gcc/?C=M;O=D' | \ grep -v 'gcc-6\|gcc-7' | \ $(SED) -n 's,.* '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_RELEASE)/specs' $(SED) -i 's,-lmingwex,-lmingwex -lssp_nonshared -lssp,' '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_RELEASE)/specs' # compile test cd '$(PREFIX)/$(TARGET)/bin' && '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ -D_FORTIFY_SOURCE=2 \ --coverage -fprofile-dir=. -v \ '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' endef $(PKG)_BUILD_x86_64-w64-mingw32 = $(subst @gcc-crt-config-opts@,--disable-lib32,$($(PKG)_BUILD_mingw-w64)) $(PKG)_BUILD_i686-w64-mingw32 = $(subst @gcc-crt-config-opts@,--disable-lib64,$($(PKG)_BUILD_mingw-w64))