Blame SOURCES/pgtcl-no-rpath.patch

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