mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
agent: Make LIBC configurable
Currently the default LIBC used to build the agent is "musl". However, "musl" is not preset in a big portion of the distros *and* "gnu" libc just works as expected. Knowing that, let's add the option to the one building the project to simply do `make LIBC=gnu` instead of expected the person to go through the Makefile and replace musl by gnu there. Fixes: #369 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
7eedc95de4
commit
cdbba6ac4b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user