Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure check for libpcap is bogus and breaks cross-compilation #2

Open
rofl0r opened this issue Aug 12, 2014 · 0 comments
Open

configure check for libpcap is bogus and breaks cross-compilation #2

rofl0r opened this issue Aug 12, 2014 · 0 comments

Comments

@rofl0r
Copy link

rofl0r commented Aug 12, 2014

[ if test -f ${prefix}/include/pcap.h; then
     PCAP_CFLAGS="-I${prefix}/include"
     PCAPLIB="-L${exec_prefix}/lib -lpcap"
  elif test -f /usr/include/pcap/pcap.h; then
     PCAP_CFLAGS="-I/usr/include/pcap"
     PCAPLIB="-lpcap"

this leads to -I/usr/include being added to the CFLAGS, breaking crosscompilation, as the host headers get pulled in instead of the target headers.
note that checking existence of a file is completely bogus.
test should just check header availability using http://www.gnu.org/software/autoconf/manual/autoconf.html#Generic-Headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant