Browse Source

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 <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
3a559224b3
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      libs/libcap/patches/300-uclibc-ng.patch

+ 11
- 0
libs/libcap/patches/300-uclibc-ng.patch View File

@ -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

Loading…
Cancel
Save