#2150 closed defect (fixed)
Hard to build mapserver with shared library
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 4.10.3 release |
Component: | Build Problems | Version: | 4.10 |
Severity: | normal | Keywords: | |
Cc: | dmorissette hobu |
Description
In the MapServer 4.10.x series it is hard to build mapserver with a shared library since the shared library was renamed to libmapserver.so (instead of libmap.so) but with no corresponding change in how the executables are linked. So they always pick up libmap.a.
Note, in trunk the static library has also been renamed to libmapserver.a so things are working fine there.
The change was r5467.
Change History (4)
comment:1 by , 17 years ago
Milestone: | → 4.10.3 release |
---|---|
Status: | new → assigned |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 17 years ago
comment:4 by , 17 years ago
The java and csharp Makefile.in had the same issue. I have fixed both to use -lmapserver instead of -lmap in r6702
Note:
See TracTickets
for help on using tickets.
I have changed libmap.a to libmapserver.a in Makefile.in and substituted $(LIBMAP_STATIC) for libmap.a in a few places it was listed literally.
Now "make shared all" should be the shared library and then link the programs against it.