mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 16:19:06 +08:00
travis: bump the Ubuntu release to Bionic
The main reason why this is necessary is that gcc 5.x on Xenial doesn't support ASan on s390x. Bumping the release to Bionic with gcc 7.x allows us to build libbpf on s390x with ASan without issues.
This commit is contained in:
committed by
Andrii Nakryiko
parent
3720f31852
commit
dd8f1bdd45
27
travis-ci/managers/ubuntu.sh
Executable file
27
travis-ci/managers/ubuntu.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
|
||||
RELEASE="bionic"
|
||||
|
||||
echo "deb-src http://archive.ubuntu.com/ubuntu/ $RELEASE main restricted universe multiverse" >>/etc/apt/sources.list
|
||||
|
||||
apt-get update
|
||||
apt-get -y build-dep libelf-dev
|
||||
apt-get install -y libelf-dev pkg-config
|
||||
|
||||
source "$(dirname $0)/travis_wait.bash"
|
||||
|
||||
cd $REPO_ROOT
|
||||
|
||||
CFLAGS="-g -O2 -Werror -Wall -fsanitize=address,undefined"
|
||||
mkdir build install
|
||||
cc --version
|
||||
make CFLAGS="${CFLAGS}" -C ./src -B OBJDIR=../build
|
||||
ldd build/libbpf.so
|
||||
if ! ldd build/libbpf.so | grep -q libelf; then
|
||||
echo "FAIL: No reference to libelf.so in libbpf.so!"
|
||||
exit 1
|
||||
fi
|
||||
make -C src OBJDIR=../build DESTDIR=../install install
|
||||
rm -rf build install
|
||||
Reference in New Issue
Block a user