Better support for address and leak sanitizer
case "$(uname -s)" in
Darwin)
- # OS X
brew update
brew install libevent jansson libxml2 check net-snmp
;;
Linux)
- # Linux
+ # We prefer gcc-5
+ [ $CC != gcc ] || \
+ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -qqy update
sudo apt-get -qqy install \
automake autoconf libtool pkg-config \
libsnmp-dev libxml2-dev libjansson-dev \
libevent-dev libreadline-dev libbsd-dev \
- check
+ check libc6-dbg libevent-dbg
+ [ $CC != gcc ] || \
+ sudo apt-get -qqy install gcc-5
# For integration tests
sudo -H $(which python3) -m pip install -r tests/integration/requirements.txt
;;
;;
esac
+[ $CC != gcc ] || CC=gcc-5
+
./autogen.sh
./configure $LLDPD_CONFIG_ARGS \
--enable-pie \