blob: 81fdd2a15c38bc60c464edee8ec35d4d58bbc4ec [file] [log] [blame]
Andrew Geissler635e0e42020-08-21 15:58:33 -05001From e4fe6890e07821d60f01f000a95f7944f3d68139 Mon Sep 17 00:00:00 2001
Andrew Geissler82c905d2020-04-13 13:39:40 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 15 Jan 2020 17:16:28 +0100
4Subject: [PATCH] tests: do not statically link a test
5
6This fails on e.g. centos 7
7
8Upstream-Status: Inappropriate [oe-core specific]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Andrew Geisslerc182c622020-05-15 14:13:32 -050010
Andrew Geissler82c905d2020-04-13 13:39:40 -050011---
Andrew Geisslerc182c622020-05-15 14:13:32 -050012 tests/Makefile | 8 ++++----
13 1 file changed, 4 insertions(+), 4 deletions(-)
Andrew Geissler82c905d2020-04-13 13:39:40 -050014
15diff --git a/tests/Makefile b/tests/Makefile
Andrew Geissler635e0e42020-08-21 15:58:33 -050016index 876a8b9..93a0e3a 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050017--- a/tests/Makefile
18+++ b/tests/Makefile
Andrew Geissler635e0e42020-08-21 15:58:33 -050019@@ -26,23 +26,23 @@ psx_test: psx_test.c $(DEPS)
Andrew Geissler82c905d2020-04-13 13:39:40 -050020 run_libcap_psx_test: libcap_psx_test
21
22 libcap_psx_test: libcap_psx_test.c $(DEPS)
23- $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create --static
24+ $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LIBCAPLIB) $(LIBPSXLIB) -Wl,-wrap,pthread_create
25
Andrew Geisslerc182c622020-05-15 14:13:32 -050026 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
Andrew Geissler82c905d2020-04-13 13:39:40 -050045 clean:
Andrew Geissler635e0e42020-08-21 15:58:33 -050046 rm -f psx_test libcap_psx_test libcap_launch_test *~