ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > configure - switch for static builds?
configure - switch for static builds?
  Author    Thread Reply to topic
Raziel
ScummVM Porter


Joined: 25 Oct 2005
Posts: 944
Location: A haunted Castle somewhere in the Bavarian Mountains
configure - switch for static builds? 

Hi,

not sure where else i should ask such a question.

in configure SDL targets are always built with shared objects.

code:

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:

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
 Reply with quote  
Post Sun Dec 31, 2017 10:59 am 
 View user's profile Send private message Visit poster's website
snover
ScummVM Developer


Joined: 17 Dec 2017
Posts: 20
 

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.

 Reply with quote  
Post Mon Jan 01, 2018 7:51 am 
 View user's profile Send private message
criezy
ScummVM Developer


Joined: 23 Sep 2006
Posts: 504
Location: West Sussex, UK
 

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).

 Reply with quote  
Post Mon Jan 01, 2018 8:08 am 
 View user's profile Send private message
Raziel
ScummVM Porter


Joined: 25 Oct 2005
Posts: 944
Location: A haunted Castle somewhere in the Bavarian Mountains
 

quote:
Originally posted 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.

I'd love to Smile

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 Wink


Edit: Ah well, trying won't hurt...PR is up
 Reply with quote  
Post Mon Jan 01, 2018 11:09 am 
 View user's profile Send private message Visit poster's website
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge