[Snort-devel] Fixing cross-compiling

Erik de Castro Lopo erikd+snort at ...2292...
Mon Jul 5 18:31:04 EDT 2004

Hi People,

I'm working on cross-compiling snort from ix86-linux to arm-linux.
The patch I sent earlier gets 90% of the way there. The remaining
issue is that when compiling for/on linux, configure insists on 
adding "-I/usr/include/pcap" to the compile command line. When 
cross compiling, this is wrong.

I experimented with removing this from the configure script and
found that cross compiling now worked and that removing it didn't
break native compiles either.

Patch below.

[N] Erik de Castro Lopo, Senior Computer Engineer
[E] erik.de.castro.lopo at ...2292...
[W] http://www.sensorynetworks.com
[T] +61 2 83022726 
[F] +61 2 94750316 
[A] L4/140 William St, East Sydney NSW 2011, Australia
A good debugger is no substitute for a good test suite.

RCS file: /cvsroot/snort/configure.in,v
retrieving revision 1.136
diff -u -r1.136 configure.in
--- configure.in	21 Jun 2004 19:26:17 -0000	1.136
+++ configure.in	6 Jul 2004 01:26:34 -0000
@@ -83,7 +83,6 @@
     # libpcap doesn't even LOOK at the timeout you give it under Linux
-    extra_incl=-I/usr/include/pcap
     AC_DEFINE(HPUX,,[Define if HPUX])

More information about the Snort-devel mailing list