building mapserver w/o shared gd

Daniel Morissette morissette at dmsolutions.on.ca
Wed Oct 18 07:02:16 PDT 2000


Chris,

One thing that you could do to solve at least the _linking_ problem is
to edit the Makefile after you've run configure to set:

 GD_LIB = /path/to/my/gd-1.2/libgd.a

Now, I'm not sure about the headers... if you're lucky then the
-I/path/to/my/gd-1.2 that should already be set in the Makefile should
be enough to force using the GD 1.2 headers.  If not then I'm not sure
what to suggest forthe headers.

Good Luck!

Daniel

imap at chesapeake.net wrote:
> 
> I've been grappling with the problem for a long time...
> I am trying to build mapserver with a static linkage to
> gd-1.2 (libgd.a).  On the more recent versions of redhat
> linux, there exists a libgd.so (shared lib) in /usr/lib
> and the compiler *always* links to the shared lib in the
> gcc standard list of directories before those paths defined
> by -L.
> 
> The one thing that I know that works.. is deleteing the
> gd headers and lib from the standard directories (/usr/include
> and /usr/lib)...  but that isnt a nice thing to do to someone
> elses machine, especially if they are using it.   I have tried
> the gcc linker -static with no luck.  Does anyone know of a
> work around for this problem?
> 
> Regards,
> 
> Chris Stuber (mapsurfer)
> Silicon Mapping Solutions Inc
> (410)357-3187

-- 
------------------------------------------------------------
 Daniel Morissette             morissette at dmsolutions.on.ca
               http://www.dmsolutions.on.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