diff options
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.patch | 32 |
1 files changed, 26 insertions, 6 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 e568cc47c5..912f33f165 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 @@ | |||
1 | From 1179b423cce8d119b42cebfb3daa77c540fdca43 Mon Sep 17 00:00:00 2001 | 1 | From 24d59c99bcba065f1f40f49f870a5f6483b4b078 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Wed, 15 Jan 2020 17:16:28 +0100 | 3 | Date: Wed, 15 Jan 2020 17:16:28 +0100 |
4 | Subject: [PATCH] tests: do not statically link a test | 4 | Subject: [PATCH] tests: do not statically link a test |
@@ -7,20 +7,40 @@ This fails on e.g. centos 7 | |||
7 | 7 | ||
8 | Upstream-Status: Inappropriate [oe-core specific] | 8 | Upstream-Status: Inappropriate [oe-core specific] |
9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
10 | |||
10 | --- | 11 | --- |
11 | tests/Makefile | 2 +- | 12 | tests/Makefile | 8 ++++---- |
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 4 insertions(+), 4 deletions(-) |
13 | 14 | ||
14 | diff --git a/tests/Makefile b/tests/Makefile | 15 | diff --git a/tests/Makefile b/tests/Makefile |
15 | index 7162cf0..6af47af 100644 | 16 | index f9cec56..aa0d09b 100644 |
16 | --- a/tests/Makefile | 17 | --- a/tests/Makefile |
17 | +++ b/tests/Makefile | 18 | +++ b/tests/Makefile |
18 | @@ -29,7 +29,7 @@ psx_test_wrap: psx_test.c $(DEPS) | 19 | @@ -29,23 +29,23 @@ psx_test_wrap: psx_test.c $(DEPS) |
19 | run_libcap_psx_test: libcap_psx_test | 20 | run_libcap_psx_test: libcap_psx_test |
20 | 21 | ||
21 | libcap_psx_test: libcap_psx_test.c $(DEPS) | 22 | libcap_psx_test: libcap_psx_test.c $(DEPS) |
22 | - $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static | 23 | - $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static |
23 | + $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create | 24 | + $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create |
24 | 25 | ||
26 | run_libcap_launch_test: libcap_launch_test libcap_psx_launch_test noop | ||
27 | sudo ./libcap_launch_test | ||
28 | sudo ./libcap_psx_launch_test | ||
29 | |||
30 | libcap_launch_test: libcap_launch_test.c $(DEPS) | ||
31 | - $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) --static | ||
32 | + $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) | ||
33 | |||
34 | # this varies only slightly from the above insofar as it currently | ||
35 | # only links in the pthreads fork support. TODO() we need to change | ||
36 | # the source to do something interesting with pthreads. | ||
37 | libcap_psx_launch_test: libcap_launch_test.c $(DEPS) | ||
38 | - $(CC) $(CFLAGS) $(IPATH) -DWITH_PTHREADS $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static | ||
39 | + $(CC) $(CFLAGS) $(IPATH) -DWITH_PTHREADS $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create | ||
40 | |||
41 | noop: noop.c | ||
42 | - $(CC) $(CFLAGS) $< -o $@ --static | ||
43 | + $(CC) $(CFLAGS) $< -o $@ | ||
44 | |||
25 | clean: | 45 | clean: |
26 | rm -f psx_test psx_test_wrap libcap_psx_test | 46 | rm -f psx_test psx_test_wrap libcap_psx_test libcap_launch_test *~ |