mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-18 07:19:07 +08:00
We are no longer using Travis. As such, we should move away from a lot of CI functionality located in a folder called travis-ci/. This change renames the travis-ci/ directory to the more generic ci/. To preserve backwards compatibility until all "consumers" have transitioned, we add a symbolic link called travis-ci back. It will be removed in the near term future. Signed-off-by: Daniel Müller <deso@posteo.net>
16 lines
338 B
Bash
Executable File
16 lines
338 B
Bash
Executable File
#!/bin/bash
|
|
set -euox pipefail
|
|
|
|
EXTRA_CFLAGS=${EXTRA_CFLAGS:-}
|
|
EXTRA_LDFLAGS=${EXTRA_LDFLAGS:-}
|
|
|
|
cat << EOF > main.c
|
|
#include <bpf/libbpf.h>
|
|
int main() {
|
|
return bpf_object__open(0) < 0;
|
|
}
|
|
EOF
|
|
|
|
# static linking
|
|
${CC:-cc} ${EXTRA_CFLAGS} ${EXTRA_LDFLAGS} -o main -I./include/uapi -I./install/usr/include main.c ./build/libbpf.a -lelf -lz
|