Ticket #63677: gcc11_patch_macOS12_arm64

File gcc11_patch_macOS12_arm64, 1.2 KB (added by JohnPritchard (Johnny P), 3 years ago)
Line 
1--- /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/gcc11/Portfile.o    2021-11-02 23:35:56.000000000 +0100
2+++ /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/gcc11/Portfile      2021-11-21 10:25:59.000000000 +0100
3@@ -51,6 +51,13 @@
4     checksums       rmd160  ccb26e52571aff9230f4bdf067fe8c9d1fb79235 \
5                     sha256  ce862b4a4bdc8f36c9240736d23cd625a48af82c2332d2915df0e16e1609a74c \
6                     size    125460899
7+    pre-build {
8+        file mkdir /usr/local/lib
9+        ln -fs ${workpath}/build/gcc/libgcc_s.1.1.dylib /usr/local/lib/
10+    }
11+    post-build {
12+        file delete /usr/local/lib/libgcc_s.1.1.dylib
13+    }
14 } else {
15     distname        gcc-${version}
16     use_xz          yes
17@@ -378,6 +385,7 @@
18 
19         # Move temporary lib dir back in place
20         move ${destroot}${prefix}/lib/libgcc.merged ${destroot}${prefix}/lib/libgcc
21+        system "chmod a+x ${destroot}${prefix}/lib/libgcc/*.dylib"
22 
23         # For binary compatibility with binaries that linked against the old libstdcxx port
24         ln -s libgcc/libstdc++.6.dylib ${destroot}${prefix}/lib/libstdc++.6.dylib