--- testsuite/dlopen-test.c.orig 2017-04-24 16:05:46.000000000 -0400
+++ testsuite/dlopen-test.c 2017-04-24 16:05:56.000000000 -0400
main (int argc UNUSED, char **argv UNUSED)
- void *handle = dlopen ("../libnettle.so", RTLD_NOW);
+ void *handle = dlopen ("../libnettle.dylib", RTLD_NOW);
int (*get_version)(void);
--- run-tests.orig 2017-04-24 16:43:46.000000000 -0400
+++ run-tests 2017-04-24 16:44:27.000000000 -0400
testname=`basename "$1" .exe`
testname=`basename "$testname" -test`
if [ -z "$EMULATOR" ] || head -1 "$1" | grep '^#!' > /dev/null; then
+ DYLD_LIBRARY_PATH=../.lib "$1" $testflags
- $EMULATOR "$1" $testflags
+ DYLD_LIBRARY_PATH=../.lib $EMULATOR "$1" $testflags
--- examples/rsa-encrypt-test.orig 2017-04-24 16:48:35.000000000 -0400
+++ examples/rsa-encrypt-test 2017-04-24 16:49:07.000000000 -0400
data="$srcdir/nettle-benchmark.c"
if [ -x rsa-encrypt$EXEEXT ] ; then
- if $EMULATOR ./rsa-encrypt -r rsa-decrypt$EXEEXT testkey.pub < "$data" > testciphertext ; then
+ if DYLD_LIBRARY_PATH=../.lib $EMULATOR ./rsa-encrypt -r rsa-decrypt$EXEEXT testkey.pub < "$data" > testciphertext ; then
- if $EMULATOR ./rsa-decrypt testkey < testciphertext > testcleartext ; then
+ if DYLD_LIBRARY_PATH=../.lib $EMULATOR ./rsa-decrypt testkey < testciphertext > testcleartext ; then