diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2010-09-17 15:48:55 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2010-09-17 15:48:55 +0000 | 
| commit | d39c594d39df7f283c2fb8a704a3f31c501180d9 (patch) | |
| tree | 36453626c792cccd91f783a38a169d610a6b9db9 /lib/System/DynamicLibrary.cpp | |
| parent | 6144c1de6a7674dad94290650e4e14f24d42e421 (diff) | |
Notes
Diffstat (limited to 'lib/System/DynamicLibrary.cpp')
| -rw-r--r-- | lib/System/DynamicLibrary.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp index 6f6890c06c49..660db492d6b9 100644 --- a/lib/System/DynamicLibrary.cpp +++ b/lib/System/DynamicLibrary.cpp @@ -70,6 +70,12 @@ bool DynamicLibrary::LoadLibraryPermanently(const char *Filename,      if (ErrMsg) *ErrMsg = dlerror();      return true;    } +#ifdef __CYGWIN__ +  // Cygwin searches symbols only in the main +  // with the handle of dlopen(NULL, RTLD_GLOBAL). +  if (Filename == NULL) +    H = RTLD_DEFAULT; +#endif    if (OpenedHandles == 0)      OpenedHandles = new std::vector<void *>();    OpenedHandles->push_back(H);  | 
