[mapserver-dev] libtool usage

thomas bonfort thomas.bonfort at gmail.com
Tue Dec 20 04:35:19 EST 2011


On Mon, Dec 19, 2011 at 19:15, Daniel Morissette
<dmorissette at mapgears.com> wrote:
> On 11-12-19 11:38 AM, thomas bonfort wrote:
>>
>>
>> I understand your reticense, however note that in our current setup we
>> are bandaid fixing our build tools to support shared libraries, with
>> marginal success (php mapscript has to be statically linked to
>> libmapserver, we are unconditionaly adding -fPIC on static builds,
>> getting the apache module to load requires either a static build or
>> manually adding a Loadfile libmapserver.so in httpd.conf, ...). I am
>> confident that the libtool guys are much better than we are in sorting
>> these things out, even though the blackbox approach of libtool might
>> seem a bit unnerving.
>>
>
> Agreed, but instead of "bandaid", I might use the term "duct tape" since the
> pieces do hold together fairly well as things stand now. ;-)

yes, our static build is ok, but now we actually need a clean dynamic
library so it can be loaded into apache it is failing hard.

>
> I would also (like you) tend to expect libtools to do a better job than our
> duct tape solution, but as I said this comes at the cost of a blackbox
> approach for non-experts that scares me a bit (i.e. when it fails you're
> screwed).
>
> What about CMake? It seems to be the cool name for build environments these
> days, and should even support Windows. Was this considered as an option? (I
> am no CMake expert, just asking)

Using libtool only required to make a few changes to our Makefile.in
(see attached diff) and adding the libtool macros to our configure.in.
moving to cmake is a task that is orders of magnitude more involved,
and imho an even more blackbox approach than libtool.


>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
> Provider of Professional MapServer Support since 2000
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile.in.diff
Type: application/octet-stream
Size: 14523 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20111220/b94a153e/makefile.in-0001.obj


More information about the mapserver-dev mailing list