summaryrefslogtreecommitdiffstats
path: root/patches/busybox-1.24.2/0202-build-system-only-pass-real-libs-to-SELINUX_LIBS.patch
blob: d3027e0c237874b0dc8454ad38f095ed23a5f224 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Mon, 28 Jan 2013 14:21:07 +0100
Subject: [PATCH] build system: only pass real libs to SELINUX_LIBS

The busybox make system will fail otherwise.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 Makefile.flags | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.flags b/Makefile.flags
index 307afa7f5212..d68c9c4e97c6 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -141,6 +141,7 @@ ifeq ($(CONFIG_SELINUX),y)
 SELINUX_PC_MODULES = libselinux libsepol
 $(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))
 CPPFLAGS += $(SELINUX_CFLAGS)
+SELINUX_LIBS := $(filter -l%,$(SELINUX_LIBS))
 LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))
 endif