Commit da7fbb24 authored by Li Wei's avatar Li Wei Committed by Stephen Hemminger

iproute2: configure: Add search path for 64bit library.

Use pkg-config to tell us the library path and fallback to search
old paths if xtables.pc not exists.
Signed-off-by: default avatarLi Wei <lw@cn.fujitsu.com>
parent 083b46bb
......@@ -148,7 +148,13 @@ check_ipt()
check_ipt_lib_dir()
{
IPT_LIB_DIR=""
IPT_LIB_DIR=$(pkg-config --variable=xtlibdir xtables)
if [ -n "$IPT_LIB_DIR" ]; then
echo $IPT_LIB_DIR
echo "IPT_LIB_DIR:=$IPT_LIB_DIR" >> Config
return
fi
for dir in /lib /usr/lib /usr/local/lib
do
for file in $dir/{xtables,iptables}/lib*t_*so ; do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment