summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch')
-rw-r--r--meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch36
1 files changed, 25 insertions, 11 deletions
diff --git a/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch b/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
index d9fd48a9db..3c737b884e 100644
--- a/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
+++ b/meta/recipes-support/libcap/files/0001-tests-do-not-statically-link-a-test.patch
@@ -1,4 +1,4 @@
1From 03e925f0d68bc51e1acf1ac2014a9c2452c664bf Mon Sep 17 00:00:00 2001 1From c22c6c16362c7dbc8d6faea06edee5e07759c5fa Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 15 Jan 2020 17:16:28 +0100 3Date: Wed, 15 Jan 2020 17:16:28 +0100
4Subject: [PATCH] tests: do not statically link a test 4Subject: [PATCH] tests: do not statically link a test
@@ -9,23 +9,37 @@ Upstream-Status: Inappropriate [oe-core specific]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10 10
11--- 11---
12 progs/Makefile | 2 +-
12 tests/Makefile | 4 ++-- 13 tests/Makefile | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-) 14 2 files changed, 3 insertions(+), 3 deletions(-)
14 15
16diff --git a/progs/Makefile b/progs/Makefile
17index 1d7fc7a..37db8f7 100644
18--- a/progs/Makefile
19+++ b/progs/Makefile
20@@ -42,7 +42,7 @@ endif
21 test: $(PROGS)
22
23 tcapsh-static: capsh.c $(DEPS)
24- $(CC) $(IPATH) $(CAPSH_SHELL) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS) --static
25+ $(CC) $(IPATH) $(CAPSH_SHELL) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS)
26
27 sudotest: test tcapsh-static
28 sudo $(LDPATH) ./quicktest.sh
15diff --git a/tests/Makefile b/tests/Makefile 29diff --git a/tests/Makefile b/tests/Makefile
16index d569650..f5ca377 100644 30index 3431df9..727fb86 100644
17--- a/tests/Makefile 31--- a/tests/Makefile
18+++ b/tests/Makefile 32+++ b/tests/Makefile
19@@ -11,7 +11,7 @@ ifeq ($(DYNAMIC),yes) 33@@ -22,7 +22,7 @@ ifeq ($(PTHREADS),yes)
20 LDPATH = LD_LIBRARY_PATH=../libcap 34 DEPS += ../libcap/libpsx.so
21 DEPSBUILD = all 35 endif
22 else 36 else
23-LDFLAGS += --static 37-LDFLAGS += --static
24+LDFLAGS += 38+LDFLAGS +=
25 DEPSBUILD = libcap.a libpsx.a 39 DEPS=../libcap/libcap.a ../progs/tcapsh-static
26 endif 40 ifeq ($(PTHREADS),yes)
27 41 DEPS += ../libcap/libpsx.a
28@@ -51,7 +51,7 @@ libcap_psx_launch_test: libcap_launch_test.c $(DEPS) 42@@ -106,7 +106,7 @@ noexploit: exploit.o $(DEPS)
29 43
30 # This one runs in a chroot with no shared library files. 44 # This one runs in a chroot with no shared library files.
31 noop: noop.c 45 noop: noop.c