aboutsummaryrefslogtreecommitdiff
path: root/recipes/smpeg/smpeg-0.4.5+svnr387/add-disable-rpath.patch
blob: e1de0ea1e80486a54833806da6db8fb3a309008c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Upstream: http://icculus.org/pipermail/smpeg/2010-November/000183.html

Add --disable-rpath to fix build in OE.

--- trunk/configure.in.orig	2010-11-07 09:00:19.000000000 -0500
+++ trunk/configure.in	2010-11-10 13:02:06.000000000 -0500
@@ -84,19 +84,27 @@
         ;;
 esac
 
-# Set runtime shared library paths as needed 
-
-case "$target" in
-    *-*-linux*)
-	SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
-	;;
-    *-*-freebsd*)
-	SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
-	;;
-    *-*-solaris*)
-	SMPEG_RLD_FLAGS="-R\${exec_prefix}/lib"
-	;;
-esac
+dnl Set runtime shared library paths as needed 
+AC_ARG_ENABLE(rpath,
+	AC_HELP_STRING([--enable-rpath],
+		[use an rpath when linking SDL [[default=yes]]]),,
+	enable_rpath=yes)
+
+if test "x$enable_rpath" = "xyes"; then
+  case "$target" in
+      *-*-linux*)
+	  SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+	  ;;
+      *-*-freebsd*)
+	  SMPEG_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+	  ;;
+      *-*-solaris*)
+	  SMPEG_RLD_FLAGS="-R\${exec_prefix}/lib"
+	  ;;
+  esac
+else
+  SMPEG_RLD_FLAGS=""
+fi
 
 AC_SUBST(SMPEG_RLD_FLAGS)