libselinux: build for musl
This commit is contained in:
parent
dcb2cfb4af
commit
42a33a8936
13
srcpkgs/libselinux/patches/fts.patch
Normal file
13
srcpkgs/libselinux/patches/fts.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git utils/Makefile utils/Makefile
|
||||
index 3615063..3c1be17 100644
|
||||
--- utils/Makefile
|
||||
+++ utils/Makefile
|
||||
@@ -47,6 +47,8 @@ override CFLAGS += -I../include -D_GNU_SOURCE $(DISABLE_FLAGS) $(PCRE_CFLAGS)
|
||||
override LDFLAGS += -L../src
|
||||
override LDLIBS += -lselinux
|
||||
PCRE_LDLIBS ?= -lpcre
|
||||
+FTS_LDLIBS ?=
|
||||
+override LDLIBS += $(FTS_LDLIBS)
|
||||
|
||||
ifeq ($(ANDROID_HOST),y)
|
||||
TARGETS=sefcontext_compile
|
@ -14,6 +14,11 @@ homepage="https://www.nsa.gov/what-we-do/research/selinux/"
|
||||
distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
|
||||
checksum=2ea2b30f671dae9d6b1391cbe8fb2ce5d36a3ee4fb1cd3c32f0d933c31b82433
|
||||
|
||||
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||
makedepends+=" musl-fts-devel"
|
||||
export FTS_LDLIBS="-lfts"
|
||||
fi
|
||||
|
||||
libselinux-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
|
Loading…
Reference in New Issue
Block a user