Skip to content

Commit

Permalink
gcc14: Add ppc FPU patch
Browse files Browse the repository at this point in the history
This patch is from upstream gcc commit at:

gcc-mirror/gcc@1cfe4a4

Per barracuda156@, this is needed for gfortran on ppc.
See macports#26655 (comment)
  • Loading branch information
glebm committed Nov 17, 2024
1 parent 3a8819c commit 96c26cc
Show file tree
Hide file tree
Showing 2 changed files with 465 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lang/gcc14/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ if { ${os.platform} eq "darwin" } {
# Patch generated from https://github.com/iains/gcc-14-branch
# git diff --no-prefix releases/gcc-14.2.0 gcc-14.2-darwin-r1
patchfiles-append patch-darwin-gcc-${version}.diff

# GCC fixinc work-around for sys/ucred.h on OSX10.14.4 no longer seems to work ???
if { ${os.major} == 18 } {
patchfiles-append patch-OSX10.14-ucred-atomic-define.diff
Expand All @@ -193,6 +194,10 @@ if { ${os.platform} eq "darwin" } {
0002-libgcc-Darwin-Drop-the-legacy-library-build-for-macO.patch \
0003-libgcc-Darwin-Don-t-build-legacy-libgcc_s.1-on-macOS.patch
}

# This patch has been merged upstream in https://github.com/gcc-mirror/gcc/commit/1cfe4a4d0d4447b364815d5e5c889deb2e533669
# Remove it when upgrading gcc to a version that has it.
patchfiles-append darwin-ppc-fpu.patch
}

# Since GCC 7.4.0, during configure, it detects features supported by target-as.
Expand Down
Loading

0 comments on commit 96c26cc

Please sign in to comment.