Signed-off-by: Jason Zaman <jason@xxxxxxxxxxxxx> --- Makefile | 7 +++++++ build.conf | 5 +++++ support/Makefile.devel | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 57d297c9..8e149345 100644 --- a/Makefile +++ b/Makefile @@ -192,6 +192,10 @@ ifeq "$(DISTRO)" "ubuntu" M4PARAM += -D distro_debian endif +ifneq ($(LIBC),) + M4PARAM += -D libc_$(LIBC) +endif + ifeq "$(SYSTEMD)" "y" M4PARAM += -D init_systemd endif @@ -541,6 +545,9 @@ install-headers: $(layerxml) $(tunxml) $(boolxml) $(verbose) echo "NAME ?= $(NAME)" >> $(headerdir)/build.conf ifneq "$(DISTRO)" "" $(verbose) echo "DISTRO ?= $(DISTRO)" >> $(headerdir)/build.conf +endif +ifneq "$(LIBC)" "" + $(verbose) echo "LIBC ?= $(LIBC)" >> $(headerdir)/build.conf endif $(verbose) echo "MONOLITHIC ?= n" >> $(headerdir)/build.conf $(verbose) echo "DIRECT_INITRC ?= $(DIRECT_INITRC)" >> $(headerdir)/build.conf diff --git a/build.conf b/build.conf index a2f1a9b5..add0fcf8 100644 --- a/build.conf +++ b/build.conf @@ -29,6 +29,11 @@ NAME = refpolicy # Fedora users should enable redhat. #DISTRO = redhat +# libc +# Setting this will configure which libc is used. +# gnu, musl are the current options. +LIBC = gnu + # Unknown Permissions Handling # The behavior for handling permissions defined in the # kernel but missing from the policy. The permissions diff --git a/support/Makefile.devel b/support/Makefile.devel index f3daca11..fb296084 100644 --- a/support/Makefile.devel +++ b/support/Makefile.devel @@ -58,6 +58,10 @@ ifneq ($(DISTRO),) M4PARAM += -D distro_$(DISTRO) endif +ifneq ($(LIBC),) + M4PARAM += -D libc_$(LIBC) +endif + ifeq "$(SYSTEMD)" "y" M4PARAM += -D init_systemd endif -- 2.18.1