]>
The Tcpdump Group git mirrors - tcpdump/blob - buildem
3 # this script builds libpcap and tcpdump using the matrix of compilers and architectures
4 # that travis also buildsd.
6 if [ -f Makefile.
in ]; then cd ..
; fi
11 export CFLAGS
='-fno-omit-frame-pointer -fsanitize=address -fno-optimize-sibling-calls -fPIC -Wextra -g3 -ggdb3 -O0 -Werror'
12 for arch
in i386 x86_64
15 i386
) CFLAGS
="-m32 $CFLAGS"; export LDFLAGS
="-m32"; export CXXFLAGS
=-m32; target
="i686-pc-linux-gnu" ;;
18 for compiler
in clang-6.0 gcc
20 mkdir
-p $arch/$compiler
22 (cd $arch/$compiler && mkdir
-p libpcap tcpdump
&&
23 (cd libpcap
&& CC
=$compiler $here/libpcap
/configure
--target=$target && make ) &&
24 (cd tcpdump
&& CC
=$compiler $here/tcpdump
/configure
--target=$target && make && make check
))