<div dir="ltr">On 25 June 2013 02:43, Bborie Park <span dir="ltr"><<a href="mailto:dustymugs@gmail.com" target="_blank">dustymugs@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Hey Mike,<br>
<br>
raster2pgsql requires whatever GDAL requires. That is how linking<br>
works. Since raster2pgsql requires GDAL, libtool pulls in everything<br>
that GDAL requires.<br></blockquote><div><br></div><div style>Again, I'm pretty far from a linking expert, but I can't say I'm convinced that the dependant libraries also need to be linked, unless functions from these dependencies are used by raster2pgsql. Mapserver used to use --dep-libs, but found the linking unnecessary and removed this feature:<br>

<a href="http://trac.osgeo.org/mapserver/changeset/11618">http://trac.osgeo.org/mapserver/changeset/11618</a></div><div style><br></div><div style>I suspect --dep-libs is not needed with shared libraries of GDAL, e.g. ldd libgdal.so will show it is already linked with its dependants at runtime, thus shouldn't need any further linking. However, I'm not sure if statically linked libraries should be considered differently.</div>

<div style><br></div><div style>-Mike</div></div></div></div>