8009fb6
--- configure.orig	2007-05-23 10:59:34.000000000 +0200
8009fb6
+++ configure	2007-05-23 11:02:05.000000000 +0200
8009fb6
@@ -13596,14 +13596,14 @@
46f31ca
 fi
46f31ca
 
46f31ca
 
46f31ca
-      as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
46f31ca
-{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
46f31ca
-echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
46f31ca
+      as_ac_var=`echo "ac_cv_cflags_-fPIC" | $as_tr_sh`
46f31ca
+{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC" >&5
8009fb6
+echo $ECHO_N "checking whether the compiler supports -fPIC $ECHO_C" >&6; }
46f31ca
 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d229248
   echo $ECHO_N "(cached) $ECHO_C" >&6
d229248
 else
d229248
   ac_wine_try_cflags_saved=$CFLAGS
d229248
-CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
d229248
+CFLAGS="$CFLAGS -fPIC"
d229248
 cat >conftest.$ac_ext <<_ACEOF
d229248
 /* confdefs.h.  */
d229248
 _ACEOF
8009fb6
@@ -13653,7 +13653,7 @@
46f31ca
 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
46f31ca
 echo "${ECHO_T}$ac_res" >&6; }
46f31ca
 if test `eval echo '${'$as_ac_var'}'` = yes; then
46f31ca
-  LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
46f31ca
+  LIBWINE_LDFLAGS=""
8009fb6
 else
8009fb6
   as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
8009fb6
 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8009fb6
--- configure.ac.orig	2007-05-23 10:59:39.000000000 +0200
8009fb6
+++ configure.ac	2007-05-23 11:02:39.000000000 +0200
8009fb6
@@ -1031,11 +1031,6 @@
46f31ca
       WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
46f31ca
                       [AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])])
d229248
 
46f31ca
-      WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
8009fb6
-                      [LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"],
8009fb6
-          [WINE_TRY_CFLAGS([-fPIC -Wl,-R,\$ORIGIN/../lib],
8009fb6
-                           [LIBWINE_LDFLAGS="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"])])
d229248
-
c3ef9fb
       case $host_cpu in
c3ef9fb
         *i[[3456789]]86* | x86_64)
46f31ca
           WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],