xcodelegacy icon indicating copy to clipboard operation
xcodelegacy copied to clipboard

MacOSX10.5.sdk libgcc_s.10.5.dylib fix breaks linking PowerPC64 executables.

Open AliceLR opened this issue 1 year ago • 2 comments

The Leopard SDK libgcc_s.10.5.dylib missing symbols bugfix replaces the Leopard SDK build of this library with the copy from the Snow Leopard SDK, which does not support PowerPC64. This prevents any PowerPC64 executable that needs this library from successfully linking.

If reasonable, it'd be nice to have the fix extract the PowerPC64 library from the old libgcc_s.10.5.dylib and insert it into the new one:

pushd /tmp/XC3-10.5/SDKs/MacOSX10.5.sdk/usr/lib/
cp libgcc_s.10.5.dylib libgcc_s.10.5.dylib.bak
lipo libgcc_s.10.5.dylib.bak -extract ppc64 -output _ppc64.dylib
lipo -create $SDKROOT/usr/lib/libgcc_s.10.5.dylib _ppc64.dylib -output libgcc_s.10.5.dylib
rm _ppc64.dylib
popd

Alternatively, a command line option to opt-out might be better than having to manually diagnose and revert it :(.

AliceLR avatar Feb 13 '24 18:02 AliceLR

can you please submit a pull request?

devernay avatar May 28 '24 20:05 devernay

Sorry for the delay—yes, I can retest this and submit a pull request hopefully this weekend.

AliceLR avatar Aug 24 '24 00:08 AliceLR