configure - switch for static builds?

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

configure - switch for static builds?

Post by Raziel »

Hi,

not sure where else i should ask such a question.

in configure SDL targets are always built with shared objects.

Code: Select all

append_var LIBS "`$_sdlconfig --prefix="$_sdlpath" --libs`"
But what if i need to build it static?

Do i have to change configure manually every time to

Code: Select all

append_var LIBS "`$_sdlconfig --prefix="$_sdlpath" --staic-libs`" 
or is there maybe a switch in configure which i fail to find?

I could add a new target for my platform, but that would be overkill as it's just that one little edit and it would still be permament, so i'd have to manually edit it aswell.

Thank you
User avatar
snover
ScummVM Developer
Posts: 20
Joined: Sun Dec 17, 2017 6:45 pm

Post by snover »

There’s not currently such a flag, and, making one is a good idea and needed for other platforms too like macOS/iOS where we miss essential frameworks flags when cross-compiling without `--static-libs`. So please feel free to submit a pull request with a new configure flag to do this.
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Post by criezy »

For information on macOS there is a scummvm-static target that uses --static-libs. The scummvm-static target might be specific to macOS currently (I think it is defined in ports.mk).
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Post by Raziel »

snover wrote:There’s not currently such a flag, and, making one is a good idea and needed for other platforms too like macOS/iOS where we miss essential frameworks flags when cross-compiling without `--static-libs`. So please feel free to submit a pull request with a new configure flag to do this.
I'd love to :-)

Unfortunately i can't code...
I could try to put something together but that will probably leave you in agonizing pain while you run away crying ;-)


Edit: Ah well, trying won't hurt...PR is up
Post Reply