[postgis-devel] [PostGIS] #243: proj4 statically compiled into postgis-1.4.dll
PostGIS
trac at osgeo.org
Mon Aug 24 00:22:09 PDT 2009
#243: proj4 statically compiled into postgis-1.4.dll
--------------------------+-------------------------------------------------
Reporter: jpalmer | Owner: robe
Type: enhancement | Status: assigned
Priority: medium | Milestone: postgis 1.4.1
Component: postgis | Version: 1.4.X
Resolution: | Keywords: win32, build, dll, library, proj
--------------------------+-------------------------------------------------
Comment (by mcayland):
Ah. The missing part of the voodoo incantation is this:
gcc -shared -o libproj.dll -Wl,--out-implib=libproj.dll.a -Wl,--export-
all-symbols -Wl,--enable-auto-import -Wl,--whole-archive libproj.a -Wl,
--no-whole-archive /c/mingw/lib/libmingw32.a
Otherwise you end up linking against the .a static version produced by
default under Win32. Note that you can check whether this has worked by
running the resulting postgis-1.4.dll through MS's depends.exe.
ATB,
Mark.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/243#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
More information about the postgis-devel
mailing list