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 - static libraries include libSDLmain.a and libSDL.a, so breaking linking
Summary: static libraries include libSDLmain.a and libSDL.a, so breaking linking
Status: NEW
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.12
Hardware: All Mac OS X (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 01:13 UTC by blaffablaffa
Modified: 2019-07-31 02:06 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.