| Summary: | SDL_STATIC_LIBS should include EXTRA_LDFLAGS | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Gregory Smith <wolfy> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 1.2.13 | Keywords: | target-1.2.14 |
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
| Attachments: | win-static-libs.diff | ||
|
Description
Gregory Smith
2008-09-13 10:09:26 UTC
Created attachment 277 [details]
win-static-libs.diff
This patch allows me to build programs with --disable-shared using mingw. It might be appropriate to have EXTRA_LDFLAGS always be in SDL_STATIC_LIBS, but I'm not sure so I only put it in for win32) in this patch.
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14. Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla). --ryan. Static linking isn't recommended, as it violates the LGPL if you're not creating an open source application. May I suggest removing --static-libs from sdl-config, then? In my opinion, it should either list the correct libraries, or not be a valid option. FWIW I'm statically linking with a GPL application. Actually, I'm adding this to my bug list to apply this patch. (discussed with Sam outside of Bugzilla, got his blessing.) --ryan. |