|
|
347be1 |
From 5b80ca39b1f01177e98c78bbc622dfda6f7a7e71 Mon Sep 17 00:00:00 2001
|
|
|
347be1 |
From: Michal Sekletar <msekleta@redhat.com>
|
|
|
347be1 |
Date: Mon, 29 Sep 2014 08:27:15 +0200
|
|
|
347be1 |
Subject: [PATCH 2/4] pcap-config: mitigate multilib conflict
|
|
|
347be1 |
|
|
|
347be1 |
libdir path is different on 64bit and 32bit arches. Hence when installing both
|
|
|
347be1 |
multilib versions on the system yum complains about conflicting pcap-config
|
|
|
347be1 |
file.
|
|
|
347be1 |
|
|
|
347be1 |
Hence remove libdir references from pcap-config, libdir is in dynamic linker
|
|
|
347be1 |
path anyway.
|
|
|
347be1 |
---
|
|
|
347be1 |
pcap-config.in | 27 ++++++++-------------------
|
|
|
347be1 |
1 file changed, 8 insertions(+), 19 deletions(-)
|
|
|
347be1 |
|
|
|
347be1 |
diff --git a/pcap-config.in b/pcap-config.in
|
|
|
347be1 |
index 206be3b..75f2c9f 100644
|
|
|
347be1 |
--- a/pcap-config.in
|
|
|
347be1 |
+++ b/pcap-config.in
|
|
|
347be1 |
@@ -7,7 +7,6 @@
|
|
|
347be1 |
prefix="@prefix@"
|
|
|
347be1 |
exec_prefix="@exec_prefix@"
|
|
|
347be1 |
includedir="@includedir@"
|
|
|
347be1 |
-libdir="@libdir@"
|
|
|
347be1 |
V_RPATH_OPT="@V_RPATH_OPT@"
|
|
|
347be1 |
LIBS="@LIBS@"
|
|
|
347be1 |
PACKAGE_NAME="@PACKAGE_NAME@"
|
|
|
347be1 |
@@ -36,16 +35,6 @@ do
|
|
|
347be1 |
esac
|
|
|
347be1 |
shift
|
|
|
347be1 |
done
|
|
|
347be1 |
-if [ "$V_RPATH_OPT" != "" ]
|
|
|
347be1 |
-then
|
|
|
347be1 |
- #
|
|
|
347be1 |
- # If libdir isn't /usr/lib, add it to the run-time linker path.
|
|
|
347be1 |
- #
|
|
|
347be1 |
- if [ "$libdir" != "/usr/lib" ]
|
|
|
347be1 |
- then
|
|
|
347be1 |
- RPATH=$V_RPATH_OPT$libdir
|
|
|
347be1 |
- fi
|
|
|
347be1 |
-fi
|
|
|
347be1 |
if [ "$static" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
#
|
|
|
347be1 |
@@ -54,16 +43,16 @@ then
|
|
|
347be1 |
#
|
|
|
347be1 |
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-I$includedir -L$libdir -lpcap $LIBS"
|
|
|
347be1 |
+ echo "-lpcap @LIBS@"
|
|
|
347be1 |
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-I$includedir -L$libdir $LIBS"
|
|
|
347be1 |
+ echo "@LIBS@"
|
|
|
347be1 |
elif [ "$show_cflags" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-I$includedir"
|
|
|
347be1 |
+ echo ""
|
|
|
347be1 |
elif [ "$show_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-L$libdir -lpcap $LIBS"
|
|
|
347be1 |
+ echo "-lpcap @LIBS@"
|
|
|
347be1 |
elif [ "$show_additional_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
echo "$LIBS"
|
|
|
347be1 |
@@ -75,15 +64,15 @@ else
|
|
|
347be1 |
#
|
|
|
347be1 |
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-I$includedir -L$libdir $RPATH -l$PACKAGE_NAME"
|
|
|
347be1 |
+ echo "-lpcap"
|
|
|
347be1 |
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-I$includedir"
|
|
|
347be1 |
+ echo ""
|
|
|
347be1 |
elif [ "$show_cflags" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-I$includedir"
|
|
|
347be1 |
+ echo ""
|
|
|
347be1 |
elif [ "$show_libs" = 1 ]
|
|
|
347be1 |
then
|
|
|
347be1 |
- echo "-L$libdir $RPATH -l$PACKAGE_NAME"
|
|
|
347be1 |
+ echo "-lpcap"
|
|
|
347be1 |
fi
|
|
|
347be1 |
fi
|
|
|
347be1 |
--
|
|
|
347be1 |
1.8.3.1
|
|
|
347be1 |
|