Skip to content

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

Open
@AliceLR

Description

@AliceLR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions