Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 1 | From e4fe6890e07821d60f01f000a95f7944f3d68139 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 | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 16 | index 876a8b9..93a0e3a 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | --- a/tests/Makefile |
| 18 | +++ b/tests/Makefile |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 19 | @@ -26,23 +26,23 @@ psx_test: 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 | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 46 | rm -f psx_test libcap_psx_test libcap_launch_test *~ |