--- sqlrelay-0.34.3.orig/src/api/perl/SQLRConnection/Makefile.test
+++ sqlrelay-0.34.3/src/api/perl/SQLRConnection/Makefile.test
@@ -74,7 +74,7 @@
 rebuild: clean all
 
 libSQLRConnection.la: SQLRConnection.xs SQLRConnection.C SQLRConnection.lo
-	$(LIBTOOL) --mode=link $(CXX) -o $@ SQLRConnection.lo $(LIBS) -rpath $(PERLSITEARCH)/auto/Firstworks/SQLRConnection $(RPATH) -module
+	$(LIBTOOL) --mode=link $(CXX) -o $@ SQLRConnection.lo $(LIBS) $(RPATH) -module
 
 SQLRConnection.so:
 	if ( test -r .libs/libSQLRConnection.0.0.0 ); \
--- sqlrelay-0.34.3.orig/src/api/perl/SQLRCursor/Makefile.test
+++ sqlrelay-0.34.3/src/api/perl/SQLRCursor/Makefile.test
@@ -74,7 +74,7 @@
 rebuild: clean all
 
 libSQLRCursor.la: SQLRCursor.xs SQLRCursor.C SQLRCursor.lo
-	$(LIBTOOL) --mode=link $(CXX) -o $@ SQLRCursor.lo $(LIBS) -rpath $(PERLSITEARCH)/auto/Firstworks/SQLRCursor $(RPATH) -module
+	$(LIBTOOL) --mode=link $(CXX) -o $@ SQLRCursor.lo $(LIBS) $(RPATH) -module
 
 SQLRCursor.so:
 	if ( test -r .libs/libSQLRCursor.0.0.0 ); \
--- sqlrelay-0.34.3.orig/src/api/php/Makefile
+++ sqlrelay-0.34.3/src/api/php/Makefile
@@ -52,7 +52,7 @@
 rebuild: clean all
 
 libsql_relay.la: sql_relay.C sql_relay.lo
-	$(LIBTOOL) --mode=link $(CXX) -o $@ sql_relay.lo $(LIBS) -rpath $(PHPEXTDIR) $(RPATH) -module
+	$(LIBTOOL) --mode=link $(CXX) -o $@ sql_relay.lo $(LIBS) $(RPATH) -module
 
 sql_relay.so:
 	if ( test -r .libs/libsql_relay.0.0.0 ); \
--- sqlrelay-0.34.3.orig/src/api/python/Makefile
+++ sqlrelay-0.34.3/src/api/python/Makefile
@@ -31,7 +31,7 @@
 rebuild: clean all
 
 libCSQLRelay.la: $(SRCS) $(LOBJS)
-	$(LIBTOOL) --mode=link $(CXX) -o $@ $(LOBJS) $(LIBS) -rpath $(PYTHONDIR)/site-packages/SQLRelay $(RPATH) -module
+	$(LIBTOOL) --mode=link $(CXX) -o $@ $(LOBJS) $(LIBS) $(RPATH) -module
 
 CSQLRelay.so:
 	if ( test -r .libs/libCSQLRelay.0.0.0 ); \
--- sqlrelay-0.34.3.orig/src/api/ruby/Makefile
+++ sqlrelay-0.34.3/src/api/ruby/Makefile
@@ -56,7 +56,7 @@
 rebuild: clean all
 
 libsqlrelay.la: $(SRCS) $(LOBJS)
-	$(LIBTOOL) --mode=link $(CXX) -o $@ $(LOBJS) $(LIBS) -rpath $(RUBYDIR)/site-packages/SQLRelay $(RPATH) -module
+	$(LIBTOOL) --mode=link $(CXX) -o $@ $(LOBJS) $(LIBS) $(RPATH) -module
 
 sqlrelay.so:
 	if ( test -r .libs/libsqlrelay.0.0.0 ); \
