From 7868226310272557634b6b0f80809baa062e1180 Mon Sep 17 00:00:00 2001 From: Eric Long Date: Wed, 7 Aug 2024 20:29:31 +0800 Subject: [PATCH] Bring back ARGP_STANDALONE --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 01d01bb..3c59fc2 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,13 @@ mimic_obj := $(mimic_src:.c=.o) mimic_headers := src/bpf_skel.h $(wildcard src/*.h) $(mimic_common_headers) mimic_link_libs := -lbpf -lffi +ifeq ($(ARGP_STANDALONE),) ifeq ($(filter "gnu libc" "glibc" "free software foundation",$(shell ldd --version 2>&1 | tr '[A-Z]' '[a-z]')),) +ARGP_STANDALONE := 1 +endif +endif + +ifeq ($(ARGP_STANDALONE),1) mimic_link_libs += -largp endif