Skip to content

Commit

Permalink
fix(gcc) (#2924)
Browse files Browse the repository at this point in the history
* fix(gcc)

* use heads / add 10.5

* cc1 segfaults on linux/x86-64

* more flags

* derp
  • Loading branch information
jhheider authored Aug 16, 2023
1 parent 844e304 commit 780d42c
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions projects/gnu.org/gcc/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 780d42c

Please sign in to comment.