X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fgcc;h=bd254288d06b9b357e4d15879714232868aa959c;hb=addeeb1f79825fdf2e03c089d661686050b336d5;hp=77d1f264f245b178e9a2fce18ea4c260004d9a2f;hpb=97e4adb8fd8c1631ee42af5129a3e07175ff4995;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/gcc b/lfs/gcc index 77d1f264f2..bd254288d0 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2020 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,11 +24,11 @@ include Config -VER = 7.3.0 +VER = 10.2.0 -GMP_VER = 6.1.2 -MPFR_VER = 3.1.6 -MPC_VER = 1.0.3 +GMP_VER = 6.2.0 +MPFR_VER = 4.1.0 +MPC_VER = 1.1.0 THISAPP = gcc-$(VER) DL_FILE = $(THISAPP).tar.xz @@ -44,6 +44,8 @@ CFLAGS := $(filter-out -fexceptions,$(CFLAGS)) ifeq "$(PASS)" "1" CFLAGS := $(patsubst -mindirect-branch=%,,$(CFLAGS)) CFLAGS := $(patsubst -mfunction-return=%,,$(CFLAGS)) +CFLAGS := $(patsubst -fstack-clash-protection,,$(CFLAGS)) +CFLAGS := $(patsubst -fcf-protection,,$(CFLAGS)) endif CXXFLAGS := $(CFLAGS) @@ -149,6 +151,11 @@ endif endif endif +ifeq "$(BUILD_ARCH)" "aarch64" + EXTRA_CONFIG += \ + --enable-standard-branch-protection +endif + ifeq "$(BUILD_ARCH)" "armv7hl" EXTRA_CONFIG += \ --with-float=hard @@ -166,6 +173,12 @@ ifeq "$(BUILD_ARCH)" "i586" --with-tune=generic endif +ifeq "$(BUILD_ARCH)" "riscv64" + EXTRA_CONFIG += \ + --with-arch=rv64gc \ + --with-abi=lp64d +endif + EXTRA_CONFIG += \ --disable-multilib \ --with-bugurl=http://bugtracker.ipfire.org \ @@ -189,10 +202,10 @@ gmp-$(GMP_VER).tar.xz = $(DL_FROM)/gmp-$(GMP_VER).tar.xz mpfr-$(MPFR_VER).tar.xz = $(DL_FROM)/mpfr-$(MPFR_VER).tar.xz mpc-$(MPC_VER).tar.gz = $(DL_FROM)/mpc-$(MPC_VER).tar.gz -$(DL_FILE)_MD5 = be2da21680f27624f3a87055c4ba5af2 -gmp-$(GMP_VER).tar.xz_MD5 = f58fa8001d60c4c77595fbbb62b63c1d -mpfr-$(MPFR_VER).tar.xz_MD5 = 51bfdbf81553966c8d43808122cc81b3 -mpc-$(MPC_VER).tar.gz_MD5 = d6a1d5f8ddea3abd2cc3e98f58352d26 +$(DL_FILE)_MD5 = e9fd9b1789155ad09bcf3ae747596b50 +gmp-$(GMP_VER).tar.xz_MD5 = a325e3f09e6d91e62101e59f9bda3ec1 +mpfr-$(MPFR_VER).tar.xz_MD5 = bdd3d5efba9c17da8d83a35ec552baef +mpc-$(MPC_VER).tar.gz_MD5 = 4125404e41e482ec68282a2e687f6c73 install : $(TARGET)