xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/nettle/nettle/dlopen-test.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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
30