Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AliceLR opened this issue Feb 13, 2024 · 2 comments · May be fixed by #74
Open

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

AliceLR opened this issue Feb 13, 2024 · 2 comments · May be fixed by #74

Comments

@AliceLR
Copy link

AliceLR commented Feb 13, 2024

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 :(.

@devernay
Copy link
Owner

can you please submit a pull request?

@AliceLR
Copy link
Author

AliceLR commented Aug 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants