blob: 912f33f16555eb4a1fec925a3fbfd10734eade78 [file] [log] [blame]
Andrew Geisslerc182c622020-05-15 14:13:32 -05001From 24d59c99bcba065f1f40f49f870a5f6483b4b078 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 Geisslerc182c622020-05-15 14:13:32 -050016index f9cec56..aa0d09b 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050017--- a/tests/Makefile
18+++ b/tests/Makefile
Andrew Geisslerc182c622020-05-15 14:13:32 -050019@@ -29,23 +29,23 @@ psx_test_wrap: 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 Geisslerc182c622020-05-15 14:13:32 -050046 rm -f psx_test psx_test_wrap libcap_psx_test libcap_launch_test *~