Skip to content

Commit 7750253

Browse files
committed
build: try reorder static library linkage for Debian platforms
1 parent 34c1910 commit 7750253

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pmdas/bpf/GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ include $(TOPDIR)/src/include/builddefs
44
CFILES = bpf.c
55
CMDTARGET = pmdabpf$(EXECSUFFIX)
66
LIBTARGET = pmda_bpf.$(DSOSUFFIX)
7-
LLDLIBS = $(PCP_WEBLIB)
8-
LLDLIBS += $(LIB_FOR_ZLIB) $(LIB_FOR_MATH) $(LIB_FOR_LIBELF) -lbpf
7+
LLDLIBS = -lbpf $(PCP_WEBLIB)
8+
LLDLIBS += $(LIB_FOR_ZLIB) $(LIB_FOR_MATH) $(LIB_FOR_LIBELF)
99
ifeq "$(HAVE_LIBINIH)" "true"
1010
LLDLIBS += $(LIB_FOR_INIH)
1111
endif

src/pmdas/bpf/modules/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include $(TOPDIR)/src/include/builddefs
44
IAM = bpf
55
LCFLAGS = -I../bpf/include -I..
66
LLDFLAGS += -fPIC -L../bpf
7-
LDLIBS = $(PCP_WEBLIB) $(LIB_FOR_MATH) $(LIB_FOR_LIBELF) -lbpf
7+
LDLIBS = -lbpf $(PCP_WEBLIB) $(LIB_FOR_MATH) $(LIB_FOR_LIBELF)
88
LDIRT = $(HELPERS_H) $(HELPERS_C) $(APPS_H) $(APPS_BPF) vmlinux.h
99
MODULETMP = $(PCP_PMDAS_DIR)/$(IAM)/modules
1010
MODULEDIR = $(PCP_PMDASADM_DIR)/$(IAM)/modules

0 commit comments

Comments
 (0)