From: Rosen Penev Date: Sat, 11 Jan 2020 02:36:33 +0000 (-0800) Subject: libcap: Fix compilation with uClibc-ng X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3a559224b3406158888c9590f3a808606094b4da;p=openwrt-packages.git libcap: Fix compilation with uClibc-ng The test does not compile with --static. As this does not touch binaries, not bumping the package release. Signed-off-by: Rosen Penev --- diff --git a/libs/libcap/patches/300-uclibc-ng.patch b/libs/libcap/patches/300-uclibc-ng.patch new file mode 100644 index 000000000..616d2725d --- /dev/null +++ b/libs/libcap/patches/300-uclibc-ng.patch @@ -0,0 +1,11 @@ +--- a/tests/Makefile ++++ b/tests/Makefile +@@ -32,7 +32,7 @@ run_libcap_psx_test: libcap_psx_test + ./libcap_psx_test + + libcap_psx_test: libcap_psx_test.c $(DEPS) +- $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static ++ $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create + + clean: + rm -f psx_test psx_test_wrap libcap_psx_test