]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Merge pull request #161 from levitte/fix-146-2
authorDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sun, 25 Aug 2019 18:24:06 +0000 (21:24 +0300)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2019 18:24:06 +0000 (21:24 +0300)
test/run_tests: extend support for more operating systems

test/run_tests

index a6709fdce2bd1b776ae96d213244d5b505333391..b9912cf3c5d68535c6b6a8ab574ae8b4239bb20e 100644 (file)
@@ -28,8 +28,19 @@ if(defined $ENV{'OPENSSL_ROOT_DIR'}) {
         $openssl_libdir = $pkgans;
         $openssl_bindir = "$ENV{'OPENSSL_ROOT_DIR'}/bin";
     }
+
+    # Variants of library paths
+    # Linux, ELF HP-UX
     $ENV{'LD_LIBRARY_PATH'} =
         join(':', $openssl_libdir, split(/:/, $ENV{'LD_LIBRARY_PATH'}));
+    # MacOS X
+    $ENV{'DYLD_LIBRARY_PATH'} =
+        join(':', $openssl_libdir, split(/:/, $ENV{'DYLD_LIBRARY_PATH'}));
+    # AIX, OS/2
+    $ENV{'LIBPATH'} =
+        join(':', $openssl_libdir, split(/:/, $ENV{'LIBPATH'}));
+
+    # Binary path, works on all Unix-like platforms
     $ENV{'PATH'} =
         join(':', $openssl_bindir, split(/:/, $ENV{'PATH'}));
 }