diff --git a/src/agent/Makefile b/src/agent/Makefile index 79fd92707b..9a53d5182d 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -31,7 +31,19 @@ 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 + +ifeq ($(ARCH), ppc64le) + override ARCH = powerpc64le +endif + TRIPLE = $(ARCH)-unknown-linux-$(LIBC) TARGET_PATH = target/$(TRIPLE)/$(BUILD_TYPE)/$(TARGET) diff --git a/src/agent/src/linux_abi.rs b/src/agent/src/linux_abi.rs index f0cdc7a302..b41fcf1ba9 100644 --- a/src/agent/src/linux_abi.rs +++ b/src/agent/src/linux_abi.rs @@ -10,7 +10,7 @@ pub const SYSFS_DIR: &str = "/sys"; pub const SYSFS_PCI_BUS_PREFIX: &str = "/sys/bus/pci/devices"; pub const SYSFS_PCI_BUS_RESCAN_FILE: &str = "/sys/bus/pci/rescan"; #[cfg(any( - target_arch = "powerpc64le", + target_arch = "powerpc64", target_arch = "s390x", target_arch = "x86_64", target_arch = "x86"