![]() |
OS X and sdl2-config --static-libs | ![]() |
Dominus
![]() |
![]() |
Hi all,
I'm used to building some project snapshots with static libs and used to get those for SDL 1.2x via "sdl-config --static-libs". Now that one of them has been partially ported to SDL2 I found that "sdl2-config --static-libs" does NOT return the static libs of SDL2. When I compared the two configs I found that - sdl-config --static-libs has the lines
- sdl2-config --static-libs has the lines
Further digging led me to configure.in which is missing the special OS X case that SDL 1.2x had:
Then traced it back to revison Revision: 6303 and bug https://bugzilla.libsdl.org/show_bug.cgi?id=1429 I would still like to build statically with this option. I mean, I can just manually edit sdl2-config but I want to understand why you removed it. As per the bug report I don't understand how --libs could be affected by this. But then I hardly understand everything around code ![]() |
||||||||||||||||
|
![]() |
Re: OS X and sdl2-config --static-libs | ![]() |
Dominus
![]() |
![]() |
Also you might need to change docs/README-macosx.md accordingly. |
||||||||||||||||||
|
![]() |
OS X and sdl2-config --static-libs | ![]() |
Joseph Carter
![]() |
![]() |
On Sat, Jan 10, 2015 at 11:44:03PM +0000, Dominus wrote:
And Cocoa only. No carbon anymore. Joseph _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||||
|
![]() |
Re: OS X and sdl2-config --static-libs | ![]() |
Dominus
![]() |
![]() |
It's set somewhere else in configure.in these days, as the carbon framework is still needed (SDL_cocoakeyboards.m and SDL_cocoamodes.m). |
||||||||||||||||
|
![]() |
OS X and sdl2-config --static-libs | ![]() |
John
Guest
![]() |
![]() |
It works if you built the static libs when you built SDL, and the shared libs
are not present in that dir. Roughly, ## build SDL2 like this $ ./configure --disable-shared --prefix=foo ## link your app with this $ foo/bin/sdl2-config --static-libs On 01/12/2015 07:45 PM, Dominus wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||||||||
|
![]() |
Re: OS X and sdl2-config --static-libs | ![]() |
Dominus
![]() |
![]() |
Yes, that should work, but it's not practical to not have the shared lib files :(
|
||||||||||||||||||||
|
![]() |
Re: OS X and sdl2-config --static-libs | ![]() |
Dominus
![]() |
![]() |
Yes, that should work, but it's not practical to not have the shared lib files :(
|
||||||||||||||||||||
|
![]() |
OS X and sdl2-config --static-libs | ![]() |
John
Guest
![]() |
![]() |
A simple fix is to cut out the middlemen (sdl2-config and autoconf) from your
build, and just link directly to /prefix/lib/libSDL.a or libSDL.so as you like. Anotehr simple fix is to post-process the output of `sdl2-config` to replace -lSDL2 with /prefix/lib/SDL2.a as needed. On 01/14/2015 04:26 AM, Dominus wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||||||||||||
|