summaryrefslogtreecommitdiff
path: root/src/coreclr
diff options
context:
space:
mode:
authorManu <manu-silicon@users.noreply.github.com>2016-05-25 11:21:23 +0900
committerJan Kotas <jkotas@microsoft.com>2016-05-24 19:21:23 -0700
commit31031a3e21e6cbe227b99d9febcfaa554a8774d1 (patch)
tree41a8c9f017f2d1f9352c8a8e9e2d874c96e89431 /src/coreclr
parenta22c755549f6c472af861d7b1eaef918db9a0041 (diff)
downloadcoreclr-31031a3e21e6cbe227b99d9febcfaa554a8774d1.tar.gz
coreclr-31031a3e21e6cbe227b99d9febcfaa554a8774d1.tar.bz2
coreclr-31031a3e21e6cbe227b99d9febcfaa554a8774d1.zip
Support the CORE_LIBRARIES environment variable on Unix (#5112)
Mimic the Windows behavior by adding to the search path of native dlls the content of the CORE_LIBRARIES environment variable.
Diffstat (limited to 'src/coreclr')
-rw-r--r--src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp b/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
index b9e62fffeb..fb70c69ec0 100644
--- a/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
+++ b/src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp
@@ -292,7 +292,14 @@ int ExecuteManagedAssembly(
std::string appPath;
GetDirectory(managedAssemblyAbsolutePath, appPath);
+ // Construct native search directory paths
std::string nativeDllSearchDirs(appPath);
+ char *coreLibraries = getenv("CORE_LIBRARIES");
+ if (coreLibraries)
+ {
+ nativeDllSearchDirs.append(":");
+ nativeDllSearchDirs.append(coreLibraries);
+ }
nativeDllSearchDirs.append(":");
nativeDllSearchDirs.append(clrFilesAbsolutePath);