summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/nettle/nettle-3.7/dlopen-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/nettle/nettle-3.7/dlopen-test.patch')
-rw-r--r--meta/recipes-support/nettle/nettle-3.7/dlopen-test.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-support/nettle/nettle-3.7/dlopen-test.patch b/meta/recipes-support/nettle/nettle-3.7/dlopen-test.patch
new file mode 100644
index 0000000000..ab9b91f88b
--- /dev/null
+++ b/meta/recipes-support/nettle/nettle-3.7/dlopen-test.patch
@@ -0,0 +1,29 @@
1Remove the relative path for libnettle.so so the test
2program can find it.
3Relative paths are not suitable, as the folder strucure for ptest
4is different from the one expected by the nettle testsuite.
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
9Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
10---
11 testsuite/dlopen-test.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/testsuite/dlopen-test.c b/testsuite/dlopen-test.c
15index 4265bf7..1a25d17 100644
16--- a/testsuite/dlopen-test.c
17+++ b/testsuite/dlopen-test.c
18@@ -15,7 +15,7 @@ int
19 main (int argc UNUSED, char **argv UNUSED)
20 {
21 #if HAVE_LIBDL
22- void *handle = dlopen ("../libnettle." SO_EXT, RTLD_NOW);
23+ void *handle = dlopen ("libnettle.so", RTLD_NOW);
24 int (*get_version)(void);
25 if (!handle)
26 {
27--
282.17.1
29