From b68668ab61ea946e780826d9c4e30d58803984b5 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 5 Jun 2011 01:39:27 +0000 Subject: * driver/main.cc (upgrade_environment): Augment PATH for Windows DLL search. --- src/ChangeLog | 5 +++++ src/driver/main.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index d67abf2d..7198506f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-06-04 Gabriel Dos Reis + + * driver/main.cc (upgrade_environment): Augment PATH for Windows + DLL search. + 2011-06-04 Gabriel Dos Reis * driver/Makefile.in (open-axiom$(EXEEXT)): Link statically. diff --git a/src/driver/main.cc b/src/driver/main.cc index 96b4a007..e5943aa5 100644 --- a/src/driver/main.cc +++ b/src/driver/main.cc @@ -88,7 +88,11 @@ namespace OpenAxiom { const char* ldd_path = option_value(command, "--syslib"); if (ldd_path == 0) ldd_path = oa_concatenate_string(sysdir, "/lib"); +#ifdef OPENAXIOM_MS_WINDOWS_HOST + augment_variable("PATH", ldd_path); +#else augment_variable("LD_LIBRARY_PATH", ldd_path); +#endif publish_systemdir(sysdir); } -- cgit v1.2.3