Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 1 | From 24d59c99bcba065f1f40f49f870a5f6483b4b078 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Wed, 15 Jan 2020 17:16:28 +0100 |
| 4 | Subject: [PATCH] tests: do not statically link a test |
| 5 | |
| 6 | This fails on e.g. centos 7 |
| 7 | |
| 8 | Upstream-Status: Inappropriate [oe-core specific] |
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 10 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 11 | --- |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 12 | tests/Makefile | 8 ++++---- |
| 13 | 1 file changed, 4 insertions(+), 4 deletions(-) |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | |
| 15 | diff --git a/tests/Makefile b/tests/Makefile |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 16 | index f9cec56..aa0d09b 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | --- a/tests/Makefile |
| 18 | +++ b/tests/Makefile |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 19 | @@ -29,23 +29,23 @@ psx_test_wrap: psx_test.c $(DEPS) |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | 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 Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 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 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 45 | clean: |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 46 | rm -f psx_test psx_test_wrap libcap_psx_test libcap_launch_test *~ |