Skip to content

Commit

Permalink
Bring back ARGP_STANDALONE
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Aug 7, 2024
1 parent 23fc8eb commit 7868226
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7868226

Please sign in to comment.