From 780d42c96f462063402bf10a306cab895fa8e740 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 16 Aug 2023 00:45:25 -0400 Subject: [PATCH] fix(gcc) (#2924) * fix(gcc) * use heads / add 10.5 * cc1 segfaults on linux/x86-64 * more flags * derp --- projects/gnu.org/gcc/package.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/projects/gnu.org/gcc/package.yml b/projects/gnu.org/gcc/package.yml index a9fa96c7c9..fe3c8bae8b 100644 --- a/projects/gnu.org/gcc/package.yml +++ b/projects/gnu.org/gcc/package.yml @@ -74,8 +74,10 @@ build: PATCH122: https://raw.githubusercontent.com/Homebrew/formula-patches/1d184289/gcc/gcc-12.2.0-arm.diff # https://github.com/iains/gcc-darwin-arm64 PATCH131: https://raw.githubusercontent.com/Homebrew/formula-patches/master/gcc/gcc-13.1.0.diff + BRANCH105: https://github.com/iains/gcc-10-branch/archive/refs/heads/gcc-10-5Dr0-pre-0.tar.gz BRANCH114: https://github.com/iains/gcc-11-branch/archive/refs/tags/gcc-11.4-darwin-r0.tar.gz BRANCH123: https://github.com/iains/gcc-12-branch/archive/refs/tags/gcc-12.3-darwin-r0.tar.gz + BRANCH132: https://github.com/iains/gcc-13-branch/archive/refs/heads/gcc-13-2-darwin.tar.gz ARGS: - --prefix={{ prefix }} - --libdir={{ prefix }}/lib @@ -88,6 +90,10 @@ build: - --disable-multilib - --enable-default-pie - --enable-pie-tools + linux/x86-64: + LDFLAGS: $LDFLAGS -pie + CFLAGS: $CFLAGS -fPIC + CXXFLAGS: $CXXFLAGS -fPIC darwin: ARGS: # Reliance on CLT hard path is yuck. @@ -100,17 +106,17 @@ build: ARGS: - --build=x86_64-apple-darwin20.0.0 -test: | - gcc --version | grep -q "tea GCC {{version}}" - gcc -print-libgcc-file-name - gcc -print-multiarch - gcc -dumpspecs - gcc -o test1 test.c -lgmp - ./test1 - g++ -o test2 test.cc - test "$(./test2)" = "Hello, world!" - gfortran -o test3 test.f90 - test "$(./test3)" = "Hello, world!" +test: + - gcc --version | grep -q "tea GCC {{version}}" + - gcc -print-libgcc-file-name + - gcc -print-multiarch + - gcc -dumpspecs + - gcc -o test1 test.c -lgmp + - ./test1 + - g++ -o test2 test.cc + - test "$(./test2)" = "Hello, world!" + - gfortran -o test3 test.f90 + - test "$(./test3)" = "Hello, world!" provides: