2015-07-14 22:20:17 +02:00
|
|
|
From 67eb23d2be8aba3c474dac81a15b0fa11e5847b7 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Mon, 25 Nov 2013 22:51:53 +0100
|
|
|
|
Subject: [PATCH] Makefile.flags: strip non -l arguments returned by pkg-config
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2018-07-08 11:45:26 +02:00
|
|
|
[yann.morin.1998@free.fr: refresh for 1.29.0]
|
2020-07-31 20:49:42 +02:00
|
|
|
[petr.vorel@gmail.com: refresh for 1.32.0]
|
2018-07-08 11:45:26 +02:00
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
2020-07-31 20:49:42 +02:00
|
|
|
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
|
2015-07-14 22:20:17 +02:00
|
|
|
---
|
|
|
|
Makefile.flags | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/Makefile.flags b/Makefile.flags
|
|
|
|
index 307afa7..885e323 100644
|
|
|
|
--- a/Makefile.flags
|
|
|
|
+++ b/Makefile.flags
|
2020-07-31 20:49:42 +02:00
|
|
|
@@ -176,7 +176,9 @@ ifeq ($(CONFIG_SELINUX),y)
|
2015-07-14 22:20:17 +02:00
|
|
|
SELINUX_PC_MODULES = libselinux libsepol
|
|
|
|
$(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))
|
|
|
|
CPPFLAGS += $(SELINUX_CFLAGS)
|
|
|
|
-LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))
|
|
|
|
+LDLIBS += $(if $(SELINUX_LIBS),\
|
|
|
|
+ $(patsubst -l%,%,$(filter -l%,$(SELINUX_LIBS))),\
|
|
|
|
+ $(SELINUX_PC_MODULES:lib%=%))
|
|
|
|
endif
|
|
|
|
|
2018-07-08 11:45:26 +02:00
|
|
|
ifeq ($(CONFIG_FEATURE_NSLOOKUP_BIG),y)
|
2015-07-14 22:20:17 +02:00
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|