Blame SOURCES/libpcap-multilib.patch

89ba97
diff -up libpcap-1.3.0/pcap-config.in.multilib libpcap-1.3.0/pcap-config.in
89ba97
--- libpcap-1.3.0/pcap-config.in.multilib	2012-03-29 14:57:32.000000000 +0200
89ba97
+++ libpcap-1.3.0/pcap-config.in	2013-03-26 09:56:16.293324264 +0100
89ba97
@@ -7,7 +7,6 @@
89ba97
 prefix="@prefix@"
89ba97
 exec_prefix="@exec_prefix@"
89ba97
 includedir="@includedir@"
89ba97
-libdir="@libdir@"
89ba97
 V_RPATH_OPT="@V_RPATH_OPT@"
89ba97
 LIBS="@LIBS@"
89ba97
 
89ba97
@@ -36,16 +35,6 @@ do
89ba97
 	esac
89ba97
 	shift
89ba97
 done
89ba97
-if [ "$V_RPATH_OPT" != "" ]
89ba97
-then
89ba97
-	#
89ba97
-	# If libdir isn't /usr/lib, add it to the run-time linker path.
89ba97
-	#
89ba97
-	if [ "$libdir" != "/usr/lib" ]
89ba97
-	then
89ba97
-		RPATH=$V_RPATH_OPT$libdir
89ba97
-	fi
89ba97
-fi
89ba97
 if [ "$static" = 1 ]
89ba97
 then
89ba97
 	#
89ba97
@@ -54,16 +43,16 @@ then
89ba97
 	#
89ba97
 	if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
89ba97
 	then
89ba97
-		echo "-I$includedir -L$libdir -lpcap $LIBS"
89ba97
+		echo "-lpcap @LIBS@"
89ba97
 	elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
89ba97
 	then
89ba97
-		echo "-I$includedir -L$libdir $LIBS"
89ba97
+		echo "@LIBS@"
89ba97
 	elif [ "$show_cflags" = 1 ]
89ba97
 	then
89ba97
-		echo "-I$includedir"
89ba97
+		echo ""
89ba97
 	elif [ "$show_libs" = 1 ]
89ba97
 	then
89ba97
-		echo "-L$libdir -lpcap $LIBS"
89ba97
+		echo "-lpcap @LIBS@"
89ba97
 	elif [ "$show_additional_libs" = 1 ]
89ba97
 	then
89ba97
 		echo "$LIBS"
89ba97
@@ -75,15 +64,15 @@ else
89ba97
 	#
89ba97
 	if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
89ba97
 	then
89ba97
-		echo "-I$includedir -L$libdir $RPATH -lpcap"
89ba97
+		echo "-lpcap"
89ba97
 	elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
89ba97
 	then
89ba97
-		echo "-I$includedir"
89ba97
+		echo ""
89ba97
 	elif [ "$show_cflags" = 1 ]
89ba97
 	then
89ba97
-		echo "-I$includedir"
89ba97
+		echo ""
89ba97
 	elif [ "$show_libs" = 1 ]
89ba97
 	then
89ba97
-		echo "-L$libdir $RPATH -lpcap"
89ba97
+		echo "-lpcap"
89ba97
 	fi
89ba97
 fi