sbonazzo / rpms / cyrus-sasl

Forked from rpms/cyrus-sasl 2 years ago
Clone
1ddeb0
diff -up cyrus-sasl-2.1.25/m4/cyrus.m4.no_rpath cyrus-sasl-2.1.25/m4/cyrus.m4
1ddeb0
--- cyrus-sasl-2.1.25/m4/cyrus.m4.no_rpath	2010-01-22 16:12:01.000000000 +0100
1ddeb0
+++ cyrus-sasl-2.1.25/m4/cyrus.m4	2012-12-06 14:59:47.956102057 +0100
1ddeb0
@@ -32,14 +32,5 @@ AC_DEFUN([CMU_ADD_LIBPATH_TO], [
1ddeb0
 dnl runpath initialization
1ddeb0
 AC_DEFUN([CMU_GUESS_RUNPATH_SWITCH], [
1ddeb0
    # CMU GUESS RUNPATH SWITCH
1ddeb0
-  AC_CACHE_CHECK(for runpath switch, andrew_cv_runpath_switch, [
1ddeb0
-    # first, try -R
1ddeb0
-    SAVE_LDFLAGS="${LDFLAGS}"
1ddeb0
-    LDFLAGS="-R /usr/lib"
1ddeb0
-    AC_TRY_LINK([],[],[andrew_cv_runpath_switch="-R"], [
1ddeb0
-  	LDFLAGS="-Wl,-rpath,/usr/lib"
1ddeb0
-    AC_TRY_LINK([],[],[andrew_cv_runpath_switch="-Wl,-rpath,"],
1ddeb0
-    [andrew_cv_runpath_switch="none"])
1ddeb0
-    ])
1ddeb0
-  LDFLAGS="${SAVE_LDFLAGS}"
1ddeb0
-  ])])
1ddeb0
+    andrew_runpath_switch="none"
1ddeb0
+  ])