<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; ">Summary: <span class="yshortcuts" id="lw_1355356942_0">LDFLAGS</span> is overwritten when creating the postgis-2.0.so<br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div id="yiv641183675"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><div><span style="font-size: small; "><br></span></div><div style="background-color: transparent; "><span style="font-size: small; ">hi,</span></div><div><span style="font-size: small; "><br></span></div><div style="background-color: transparent; "><span style="font-size: small; ">I have postgresql-9.2.2 package installed before I try to create an RPM
 package for the postgis-2.0.2;</span></div><div style="background-color: transparent; "><span style="font-size: small; ">I updated the spec file with an LDFLAGS that has -Wl,-rpath set to libgoes_c.so.1 and libjosn.so.0.</span></div><div style="background-color: transparent; "><span style="font-size: small; "><br></span></div><div style="background-color: transparent; "><span style="font-size: small; ">During the rpm build process the postgis/Makefile is including:</span></div><div style="background-color: transparent; "><span style="font-size: small; "><span style="line-height: 14px; ">/lib/pgsql/pgxs/src/makefiles/pgxs.mk which in turn includes:</span><br></span></div><div style="background-color: transparent; "><span style="line-height: 14px; "><span style="font-size: small; "><br></span></span></div><div style="background-color: transparent; "><span style="line-height: 14px; font-size: small; "><span>/lib/pgsql/pgxs/src/Makefile.global
 and</span><br></span></div><div style="background-color: transparent; "><span style="line-height: 14px; "><span><span>/lib/pgsql/pgxs/src/Makefile.shlib and</span><br></span></span></div><div style="background-color: transparent; "><span style="line-height: 14px; "><span><span>/lib/pgsql/pgxs/src/Makefile.port<br></span></span></span></div><div style="background-color: transparent; "><span style="line-height: 14px; "><span style="font-size: small; "><br></span></span></div><div style="background-color: transparent; "><span style="line-height: 14px; "><span><span><div style="line-height: normal; "><span style="line-height: 14px; ">lib/pgsql/pgxs/src/Makefile.global is the one which is overriding LDFLAGS with the following snippets:</span></div><div style="line-height: normal; "><span style="line-height: 14px; "><br></span></div><div style="line-height: normal; "><div><font>225 ifdef PGXS</font></div><div><font>226   LDFLAGS =
 -L$(libdir)</font></div><div><font>227 else</font></div><div><font>228   LDFLAGS = -L$(top_builddir)/src/port</font></div><div><font>229 endif</font></div><div><font>230 LDFLAGS += -L... # all library locations required for postgresql build and it DOES NOT include geos or json.</font></div></div><div style="line-height: normal; "><font>….</font></div><div style="line-height: normal; "><div><font>351 rpathdir = $(libdir)</font></div><div><font>352 </font></div><div><font>353 ifeq ($(enable_rpath), yes)</font></div><div><font>354 LDFLAGS += $(rpath)</font></div><div><font>355 endif</font></div><div><font><br></font></div><div>'appreciate any help/pointers how to fix it.</div><div>Or let me know if I need to file a bug.</div><div><br></div><div>thank you,</div><div>Prasanta.</div></div></span></span></span></div></div></div></div></div></div></div></body></html>