aboutsummaryrefslogtreecommitdiffstats
path: root/community/libbpf/20-trailing-ldflags.patch
diff options
context:
space:
mode:
authorAdam Jensen <acjensen@gmail.com>2019-08-05 21:31:45 -0400
committerLeo <thinkabit.ukim@gmail.com>2019-08-31 14:07:43 -0300
commitb6f3c52f889edebea15fed5b33bd8fed624a7795 (patch)
tree830135975ab379fb63f7175cdd82597c9d5d1320 /community/libbpf/20-trailing-ldflags.patch
parentdeda17acda291fdd792e5f5af15c633750dc365e (diff)
downloadaports-b6f3c52f889edebea15fed5b33bd8fed624a7795.tar.bz2
aports-b6f3c52f889edebea15fed5b33bd8fed624a7795.tar.xz
community/bcc: move from testing
Diffstat (limited to 'community/libbpf/20-trailing-ldflags.patch')
-rw-r--r--community/libbpf/20-trailing-ldflags.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/libbpf/20-trailing-ldflags.patch b/community/libbpf/20-trailing-ldflags.patch
new file mode 100644
index 0000000000..7f65ef5645
--- /dev/null
+++ b/community/libbpf/20-trailing-ldflags.patch
@@ -0,0 +1,29 @@
+diff --git a/src/Makefile b/src/Makefile
+index e9021fe..1d86ecd 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -54,11 +54,7 @@ INSTALL = install
+
+ DESTDIR ?=
+
+-ifeq ($(shell uname -m),x86_64)
+- LIBSUBDIR := lib64
+-else
+- LIBSUBDIR := lib
+-endif
++LIBSUBDIR := lib
+
+ PREFIX ?= /usr
+ LIBDIR ?= $(PREFIX)/$(LIBSUBDIR)
+@@ -77,9 +73,9 @@ $(OBJDIR)/libbpf.so.$(VERSION): $(OBJDIR)/libbpf.so.$(LIBBPF_VERSION)
+ ln -sf $(^F) $@
+
+ $(OBJDIR)/libbpf.so.$(LIBBPF_VERSION): $(OBJS)
+- $(CC) -shared $(ALL_LDFLAGS) -Wl,--version-script=$(VERSION_SCRIPT) \
++ $(CC) -shared -Wl,--version-script=$(VERSION_SCRIPT) \
+ -Wl,-soname,libbpf.so.$(VERSION) \
+- $^ -o $@
++ $^ -o $@ $(ALL_LDFLAGS)
+
+ $(OBJDIR)/libbpf.pc:
+ sed -e "s|@PREFIX@|$(PREFIX)|" \