ae0d4ed
--- configure.orig	2006-09-17 14:55:39.000000000 +0200
ae0d4ed
+++ configure	2006-09-17 14:57:19.000000000 +0200
ae0d4ed
@@ -15903,14 +15903,14 @@
ae0d4ed
 fi
ae0d4ed
 
ae0d4ed
 
ae0d4ed
-      as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
ae0d4ed
-{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
ae0d4ed
-echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
ae0d4ed
+      as_ac_var=`echo "ac_cv_cflags_-fPIC" | $as_tr_sh`
ae0d4ed
+{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC" >&5
ae0d4ed
+echo $ECHO_N "checking whether the compiler supports -fPIC$ECHO_C" >&6; }
ae0d4ed
 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6e0fcb5
   echo $ECHO_N "(cached) $ECHO_C" >&6
6e0fcb5
 else
6e0fcb5
   ac_wine_try_cflags_saved=$CFLAGS
6e0fcb5
-CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6e0fcb5
+CFLAGS="$CFLAGS -fPIC"
6e0fcb5
 cat >conftest.$ac_ext <<_ACEOF
6e0fcb5
 /* confdefs.h.  */
6e0fcb5
 _ACEOF
ae0d4ed
@@ -15976,7 +15976,7 @@
ae0d4ed
 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
ae0d4ed
 echo "${ECHO_T}$ac_res" >&6; }
ae0d4ed
 if test `eval echo '${'$as_ac_var'}'` = yes; then
ae0d4ed
-  LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
ae0d4ed
+  LIBWINE_LDFLAGS=""
ae0d4ed
 fi
6e0fcb5
 
6e0fcb5
 
ae0d4ed
--- configure.ac.orig	2006-09-17 14:57:25.000000000 +0200
ae0d4ed
+++ configure.ac	2006-09-17 14:58:03.000000000 +0200
ae0d4ed
@@ -1058,9 +1058,6 @@
ae0d4ed
       WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
ae0d4ed
                       [AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])])
6e0fcb5
 
ae0d4ed
-      WINE_TRY_CFLAGS([-fPIC -Wl,--rpath,\$ORIGIN/../lib],
ae0d4ed
-                      [LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"])
6e0fcb5
-
c07277c
       case $host_cpu in
c07277c
         *i[[3456789]]86* | x86_64)
ae0d4ed
           WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],