blob: d9fd48a9db5c81b30c096d02c8ba9fc5c9ee4ba6 [file] [log] [blame]
Andrew Geissler6ce62a22020-11-30 19:58:47 -06001From 03e925f0d68bc51e1acf1ac2014a9c2452c664bf 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 Geissler6ce62a22020-11-30 19:58:47 -060012 tests/Makefile | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
Andrew Geissler82c905d2020-04-13 13:39:40 -050014
15diff --git a/tests/Makefile b/tests/Makefile
Andrew Geissler6ce62a22020-11-30 19:58:47 -060016index d569650..f5ca377 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050017--- a/tests/Makefile
18+++ b/tests/Makefile
Andrew Geissler6ce62a22020-11-30 19:58:47 -060019@@ -11,7 +11,7 @@ ifeq ($(DYNAMIC),yes)
20 LDPATH = LD_LIBRARY_PATH=../libcap
21 DEPSBUILD = all
22 else
23-LDFLAGS += --static
24+LDFLAGS +=
25 DEPSBUILD = libcap.a libpsx.a
26 endif
Andrew Geissler82c905d2020-04-13 13:39:40 -050027
Andrew Geissler6ce62a22020-11-30 19:58:47 -060028@@ -51,7 +51,7 @@ libcap_psx_launch_test: libcap_launch_test.c $(DEPS)
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
Andrew Geissler6ce62a22020-11-30 19:58:47 -060030 # This one runs in a chroot with no shared library files.
Andrew Geisslerc182c622020-05-15 14:13:32 -050031 noop: noop.c
32- $(CC) $(CFLAGS) $< -o $@ --static
33+ $(CC) $(CFLAGS) $< -o $@
34
Andrew Geissler82c905d2020-04-13 13:39:40 -050035 clean:
Andrew Geissler635e0e42020-08-21 15:58:33 -050036 rm -f psx_test libcap_psx_test libcap_launch_test *~