rpath patch

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hi,
  I wrote this patch for --rpath portability. It use libtool options
instead of trying linker one.

freddy77

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
rpath.diff (application/octet-stream, 2.2 KB)
Index: freetds83/src/ctlib/unittests/Makefile.am
===================================================================
--- freetds83.orig/src/ctlib/unittests/Makefile.am
+++ freetds83/src/ctlib/unittests/Makefile.am
@@ -46,7 +46,7 @@ AM_CPPFLAGS	=	-I$(top_srcdir)/include
 if MINGW32
 AM_LDFLAGS	=	-no-fast-install
 else
-AM_LDFLAGS	=	-no-install -L../.libs -Wl,--rpath,../.libs
+AM_LDFLAGS	=	-no-install -L../.libs -R $(abs_builddir)/../.libs
 endif
 LIBS		=	../libct.la ../../replacements/libreplacements.la @NETWORK_LIBS@
 CLEANFILES	=	tdsdump.out
Index: freetds83/src/dblib/unittests/Makefile.am
===================================================================
--- freetds83.orig/src/dblib/unittests/Makefile.am
+++ freetds83/src/dblib/unittests/Makefile.am
@@ -58,7 +58,7 @@ AM_CPPFLAGS	= 	-DFREETDS_SRCDIR=\"$(srcd
 if MINGW32
 AM_LDFLAGS	=	-no-fast-install
 else
-AM_LDFLAGS	=	-no-install -L../.libs -Wl,--rpath,../.libs
+AM_LDFLAGS	=	-no-install -L../.libs -R $(abs_builddir)/../.libs
 endif
 LIBS		=	../libsybdb.la ../../replacements/libreplacements.la @NETWORK_LIBS@
 EXTRA_DIST	=	t0016.in t0017.in t0017.in.be data.bin $(EXTRA_DIST_WIN32) 
Index: freetds83/src/odbc/unittests/Makefile.am
===================================================================
--- freetds83.orig/src/odbc/unittests/Makefile.am
+++ freetds83/src/odbc/unittests/Makefile.am
@@ -94,7 +94,7 @@ AM_CPPFLAGS	=	-I$(top_srcdir)/include $(
 if MINGW32
 AM_LDFLAGS	=	-no-fast-install
 else
-AM_LDFLAGS	=	-no-install -L../.libs -Wl,--rpath,../.libs
+AM_LDFLAGS	=	-no-install -L../.libs -R $(abs_builddir)/../.libs
 endif
 LIBS		=	$(ODBCLIB) $(ODBCNODMLIB) @NETWORK_LIBS@
 DISTCLEANFILES	=	odbc.ini odbcinst.ini
Index: freetds83/src/tds/unittests/Makefile.am
===================================================================
--- freetds83.orig/src/tds/unittests/Makefile.am
+++ freetds83/src/tds/unittests/Makefile.am
@@ -34,7 +34,7 @@ AM_CPPFLAGS	=	-I$(top_srcdir)/include -I
 if MINGW32
 AM_LDFLAGS	=	-no-fast-install
 else
-AM_LDFLAGS	=	-no-install -L../.libs -Wl,--rpath,../.libs
+AM_LDFLAGS	=	-no-install -L../.libs -R $(abs_builddir)/../.libs
 endif
 LIBS		=	../libtds.la ../../replacements/libreplacements.la @NETWORK_LIBS@
 CLEANFILES	=	tdsdump.out
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.