Lines 88-93
src_prepare() {
Link Here
|
88 |
# remove hardcoded/unhelpful flags from bpftool |
88 |
# remove hardcoded/unhelpful flags from bpftool |
89 |
sed -i -e '/CFLAGS += -O2/d' -e 's/-W //g' -e 's/-Wextra //g' src/Makefile || die |
89 |
sed -i -e '/CFLAGS += -O2/d' -e 's/-W //g' -e 's/-Wextra //g' src/Makefile || die |
90 |
|
90 |
|
|
|
91 |
# always build bpf bits with std=gnu11 for kernel compatibility (bug 955156) |
92 |
sed -i 's/-fno-stack-protector/& -std=gnu11/g' src/Makefile || die |
93 |
|
91 |
if ! use clang; then |
94 |
if ! use clang; then |
92 |
# remove bpf target & add assembly annotations to fix CO-RE feature detection |
95 |
# remove bpf target & add assembly annotations to fix CO-RE feature detection |
93 |
sed -i -e 's/-target bpf/-dA/' src/Makefile.feature || die |
96 |
sed -i -e 's/-target bpf/-dA/' src/Makefile.feature || die |