<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:phil@nwl.cc" title="Phil Sutter <phil@nwl.cc>"> <span class="fn">Phil Sutter</span></a>
</span> changed
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - nft configure does not use --prefix as include/lib search path"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=914">bug 914</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>phil@nwl.cc
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - nft configure does not use --prefix as include/lib search path"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=914#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - nft configure does not use --prefix as include/lib search path"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=914">bug 914</a>
from <span class="vcard"><a class="email" href="mailto:phil@nwl.cc" title="Phil Sutter <phil@nwl.cc>"> <span class="fn">Phil Sutter</span></a>
</span></b>
<pre>AFAICT, '--prefix' option is not even meant for that. It just alters DESTDIR
variable used for installing. In order to build nftables against a specific
libnftnl installed at $libpath (via '--prefix=$libpath' in libnftnl's
configure), one has to call nftables configure like so:
./configure LIBNFTNL_LIBS="-L${libpath}/lib -lnftnl" \
LIBNFTNL_CFLAGS="-I${libpath}/include"
But this will cause the resulting nft binary to be dynamically linked. So upon
execution, ${libpath}/lib has to be added to LD_LIBRARY_PATH.
I personally build libnftnl static to overcome this, then I can build nftables
like so:
./configure LIBNFTNL_LIBS="${libpath}/lib/libnftnl.a" \
LIBNFTNL_CFLAGS="-I${libpath}/include"
This causes the resulting nft binary to be statically linked against libnftnl
and therefore I don't have to adjust LD_LIBRARY_PATH upon execution.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>