We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1645

Summary: static libraries include libSDLmain.a and libSDL.a, so breaking linking
Product: SDL_image Reporter: blaffablaffa
Component: miscAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: blaffablaffa, omarandemad
Version: 1.2.12   
Hardware: All   
OS: Mac OS X (All)   

Description blaffablaffa 2012-11-16 01:13:08 UTC
When compiling with the configure and makefile on Mountain Lion, libSDLmain.a and libSDL.a get somehow included in libSDL_image.a. This seems to confuse ld, as I ge tthe following message in the final linking with the application:

ld: warning: ignoring file lib/libSDL_image.a, file was built for archive which is not the architecture being linked (x86_64): lib/libSDL_image.a

otool and lipo still recognize the library as a x86_64 blob. It's only clang that seems to be upset at it.

The same happens with libSDL_mixer.a, but I won't report this bug twice.

I don't know whether this is related to #1429.