Blame SOURCES/pgtcl-no-rpath.patch

e61410
This patch prevents use of rpath, which isn't wanted on Fedora.
e61410
e61410
Also, tweak Makefile.in to ensure that the -L switch for libpq appears
e61410
before any -L for the Tcl libraries during the link.  This prevents the
e61410
generated library from being bound to the wrong version of libpq when
e61410
building on a machine that has an older version of libpq already installed
e61410
(bug #166665).
e61410
e61410
e61410
diff -Naur pgtcl1.5.3.orig/Makefile.in pgtcl1.5.3/Makefile.in
e61410
--- pgtcl1.5.3.orig/Makefile.in	2006-09-09 21:59:59.000000000 -0400
e61410
+++ pgtcl1.5.3/Makefile.in	2007-01-10 18:58:19.000000000 -0500
e61410
@@ -101,7 +101,7 @@
e61410
 RANLIB_STUB	= @RANLIB_STUB@
e61410
 SHLIB_CFLAGS	= @SHLIB_CFLAGS@
e61410
 SHLIB_LD	= @SHLIB_LD@
e61410
-SHLIB_LD_LIBS   = @SHLIB_LD_LIBS@ $(PG_LIBS) $(TCL_LIBS)
e61410
+SHLIB_LD_LIBS   = $(PG_LIBS) @SHLIB_LD_LIBS@ $(TCL_LIBS)
e61410
 STLIB_LD	= @STLIB_LD@
e61410
 #TCL_DEFS	= @TCL_DEFS@
e61410
 TCL_BIN_DIR	= @TCL_BIN_DIR@
e61410
diff -Naur pgtcl1.5.3.orig/aclocal.m4 pgtcl1.5.3/aclocal.m4
e61410
--- pgtcl1.5.3.orig/aclocal.m4	2006-09-09 20:27:09.000000000 -0400
e61410
+++ pgtcl1.5.3/aclocal.m4	2007-01-10 18:56:46.000000000 -0500
e61410
@@ -844,7 +844,7 @@
e61410
 	    DL_OBJS="tclLoadDl.o"
e61410
 	    DL_LIBS="-ldl"
e61410
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e61410
-	    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR},-rpath,${LIB_PGTCL_RUNTIME_DIR}'
e61410
+	    CC_SEARCH_FLAGS=""
e61410
 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
e61410
 	    if test "`uname -m`" = "alpha" ; then
e61410
 		CFLAGS="$CFLAGS -mieee"