[mapserver-users] Mapserver as static executable

thomas bonfort thomas.bonfort at gmail.com
Wed Nov 19 03:51:12 PST 2014


Those flags only influence how the mapserver binaries (shp2img,
mapserv, etc...) are linked to libmapserver, not how libmapserver
links to its dependencies. There is currently now way that I know of
to statically link the dependencies. If you figure out how to do so in
cmake and wanted to submit a patch I would happily include it.

regards,
thomas

On 18 November 2014 23:26, jdmorgan <jdmorgan at unca.edu> wrote:
> Hello,
>
> I am trying to compile MapServer 6.4.1 on CENTOS (RHEL Linux) in as a
> stand-alone static executable.  At
> http://mapserver.org/installation/unix.html it says "If you want to also
> build a static version of the library, the BUILD_STATIC and
> LINK_STATIC_LIBMAPSERVER options can be used," therefore I have included
> those parameters.  However, after I complete the MAKE and MAKE INSTALL steps
> the resulting mapserv executable doesn't seem to be static.  To test this I
> am doing a ldd mapserv which list all of the dependencies, where I would
> expect none.  If anyone could provide advice that would be great.  Here is
> my CMAKE command:
>
>
>
> cmake -DCMAKE_INSTALL_PREFIX="/usr" \
>         -DCMAKE_PREFIX_PATH="/usr/pgsql-9.3" \
>         -DWITH_CLIENT_WFS=ON \
>         -DWITH_CLIENT_WMS=ON \
>         -BUILD_STATIC=ON \
>         -LINK_STATIC_LIBMAPSERVER=ON \
>         -DWITH_CAIRO=0 .. >../configure.out.txt
>
> Thanks,
> Derek
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list