[postgis-tickets] [PostGIS] #4408: can't compile --with-wagyu under mingw64

PostGIS trac at osgeo.org
Sat Jun 1 17:44:02 PDT 2019


#4408: can't compile --with-wagyu under mingw64
----------------------+---------------------------
  Reporter:  robe     |      Owner:  Algunenano
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.0.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 sadly changing order of things doesn't make a difference, so I think I
 just got to get rid of the -Wl,--disable-auto-import

 I was hunting to see where this is set, but I don't have it set.

 I suspect it may be brought in via PostgreSQL, as they have this for win32
 and maybe it's being pulled in by PGXS

 In the past I've fiddled with that because it caused compilation problems,
 but then after 9.4 it seemed to not be an issue.

 This is what PostgreSQL 12 win32 template has:


 {{{
 # src/template/win32

 # --allow-multiple-definition is required to link pg_dump because it finds
 # pg_toupper() etc. in both libpq and pgport
 # --disable-auto-import is to ensure we get MSVC-like linking behavior
 LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--disable-auto-
 import"

 }}}


 anyway trying to override it in postgis by setting the LDFLAGS with
 --enable-auto-import doesn't seem to work.  So I'll just disable it for
 now on winnie until we have this sorted out.

 I also noticed that --with-wagyu turned on (when I manually compile) my
 postgis-3.so now has a direct dependency to libstdc++ where as I don't
 think it did before.  I'm not sure if that is going to be an issue or not.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4408#comment:11>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list