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/driver/main.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/driver') 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