diff --git a/src/agent/Makefile b/src/agent/Makefile index 79fd92707..7a43d77b5 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -31,7 +31,15 @@ ifdef proto endif ARCH = $(shell uname -m) -LIBC = musl +LIBC ?= musl +ifneq ($(LIBC),musl) + ifeq ($(LIBC),gnu) + override LIBC = gnu + else + $(error "ERROR: A non supported LIBC value was passed. Supported values are musl and gnu") + endif +endif + TRIPLE = $(ARCH)-unknown-linux-$(LIBC) TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET)