diff options
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.patch | 29 |
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 @@ | |||
1 | Remove the relative path for libnettle.so so the test | ||
2 | program can find it. | ||
3 | Relative paths are not suitable, as the folder strucure for ptest | ||
4 | is different from the one expected by the nettle testsuite. | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> | ||
9 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
10 | --- | ||
11 | testsuite/dlopen-test.c | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/testsuite/dlopen-test.c b/testsuite/dlopen-test.c | ||
15 | index 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 | -- | ||
28 | 2.17.1 | ||
29 | |||