summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libselinux/0001-Fix-building-against-musl-and-uClibc-libc-libraries.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/libselinux/0001-Fix-building-against-musl-and-uClibc-libc-libraries.patch')
-rw-r--r--recipes-security/selinux/libselinux/0001-Fix-building-against-musl-and-uClibc-libc-libraries.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/recipes-security/selinux/libselinux/0001-Fix-building-against-musl-and-uClibc-libc-libraries.patch b/recipes-security/selinux/libselinux/0001-Fix-building-against-musl-and-uClibc-libc-libraries.patch
deleted file mode 100644
index 8308553..0000000
--- a/recipes-security/selinux/libselinux/0001-Fix-building-against-musl-and-uClibc-libc-libraries.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 61bfcbffce32be51d712040c3f84293b78428184 Mon Sep 17 00:00:00 2001
2From: Adam Duskett <Aduskett@gmail.com>
3Date: Tue, 7 Apr 2020 13:53:05 -0700
4Subject: [PATCH] Fix building against musl and uClibc libc libraries.
5
6Currently, the src/Makefile provides the FTS_LDLIBS when building against musl
7or uClibc. However, this is missing from utils/Makefile, which causes linking
8to fail.
9
10Add the FTS_LDLIBS variable to the LDLIBS variable in utils/Makefile to fix
11compiling against uClibc and musl.
12
13Signed-off-by: Adam Duskett <Aduskett@gmail.com>
14
15Upstream-Status: Backport
16[https://github.com/SELinuxProject/selinux/commit/aa40067b7b86d5e4c951fccae1aa98baff148613]
17
18Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
19---
20 utils/Makefile | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/utils/Makefile b/utils/Makefile
24index 3615063..a5632b7 100644
25--- a/utils/Makefile
26+++ b/utils/Makefile
27@@ -45,7 +45,7 @@ endif
28
29 override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
30 override LDFLAGS += -L../src
31-override LDLIBS += -lselinux
32+override LDLIBS += -lselinux $(FTS_LDLIBS)
33 PCRE_LDLIBS ?= -lpcre
34
35 ifeq ($(ANDROID_HOST),y)
36--
372.7.4
38