diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2016-11-30 18:44:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 18:44:20 +0100 |
commit | 75345ad1aacf8e2a4d43e4e89f16f6a641d6a9c3 (patch) | |
tree | 5f4dbf61ae04ba8a5fa428a5ec6cfe0d8497831b /compiler | |
parent | 432f68fb32525ee2c5f98e664a4d928651979550 (diff) | |
parent | 581c0c437b7cefce2ba0f33df70901e2b11181ab (diff) | |
download | Nim-75345ad1aacf8e2a4d43e4e89f16f6a641d6a9c3.tar.gz |
Merge pull request #5069 from yglukhov/ssl-init-fix
Fixed dynlink with OpenSSL >1.1.0. Added loadLibPattern.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/cgen.nim | 1 | ||||
-rw-r--r-- | compiler/commands.nim | 2 | ||||
-rw-r--r-- | compiler/options.nim | 11 |
3 files changed, 3 insertions, 11 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 6e18c8389..3217b86e4 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -17,6 +17,7 @@ import lowerings, semparallel from modulegraphs import ModuleGraph +from dynlib import libCandidates import strutils except `%` # collides with ropes.`%` diff --git a/compiler/commands.nim b/compiler/commands.nim index 590c4871d..f85e53511 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -226,6 +226,8 @@ proc testCompileOptionArg*(switch, arg: string, info: TLineInfo): bool = of "staticlib": result = contains(gGlobalOptions, optGenStaticLib) and not contains(gGlobalOptions, optGenGuiApp) else: localError(info, errGuiConsoleOrLibExpectedButXFound, arg) + of "dynliboverride": + result = isDynlibOverride(arg) else: invalidCmdLineOption(passCmd1, switch, info) proc testCompileOption*(switch: string, info: TLineInfo): bool = diff --git a/compiler/options.nim b/compiler/options.nim index b04f6a963..04ed2412e 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -372,17 +372,6 @@ proc findModule*(modulename, currentModule: string): string = result = findFile(m) patchModule() -proc libCandidates*(s: string, dest: var seq[string]) = - var le = strutils.find(s, '(') - var ri = strutils.find(s, ')', le+1) - if le >= 0 and ri > le: - var prefix = substr(s, 0, le - 1) - var suffix = substr(s, ri + 1) - for middle in split(substr(s, le + 1, ri - 1), '|'): - libCandidates(prefix & middle & suffix, dest) - else: - add(dest, s) - proc canonDynlibName(s: string): string = let start = if s.startsWith("lib"): 3 else: 0 let ende = strutils.find(s, {'(', ')', '.'}) |