[mapserver-users] compilation question

Daniel Morissette morissette at dmsolutions.ca
Thu Dec 27 19:42:53 PST 2001


Stephen Lime wrote:
> 
> The problem is how the linker works and that varies from compiler to compiler and OS to OS. On linux the linker always defaults to using the shared version. I thought Dan did some work on forcing a static link but I don't know if he was successful. In practice all of the dependent packages can be compiled into static libs although the process varies for each (i.e. read the docs).
> 

I have added an option to the --with-gd configure switch to request
static linkage of the GD library.  It's useful when you want to force
the use of a local copy of GD instead of the system GD.  
Using something like  --with-gd=static,/home/daniel/gd-1.8.4
will force a static link with /home/daniel/gd-1.8.4/libgd.a

The same could be done for other libs that are available in static (.a)
format but would require some work.


To find out which shared libs your executable depends on, you can run
'ldd mapserv' on Linux... hopefully ldd exists on BSD as well.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the MapServer-users mailing list