diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-05 20:35:50 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-05 20:35:50 +0200 |
| commit | cdd451619a447860ceb29aafb2fe59e266f3d9c7 (patch) | |
| tree | b9c4665d444f8cfb4f084b03938c2b5e70ddcdc1 | |
| parent | f02993636a68e2a611acf6c4519cf6f139ab4737 (diff) | |
| download | tuxcmd-cdd451619a447860ceb29aafb2fe59e266f3d9c7.tar.xz | |
Let ld resolve all symbols during binding
This should prevent "Symbol lookup error" messages in runtime, causing program to abort.
| -rw-r--r-- | vfs/UVFSCore.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vfs/UVFSCore.pas b/vfs/UVFSCore.pas index ae752c8..475730c 100644 --- a/vfs/UVFSCore.pas +++ b/vfs/UVFSCore.pas @@ -1119,7 +1119,7 @@ begin end; if b then DebugMsg(['Module ', s, ' is already loaded --> skipping...']) else begin - ModuleHandler := dlopen(PChar(IncludeTrailingPathDelimiter(s) + Buf), RTLD_LAZY); + ModuleHandler := dlopen(PChar(IncludeTrailingPathDelimiter(s) + Buf), RTLD_NOW); if ModuleHandler = nil then DebugMsg([' XXX Error loading module: ', dlerror]) else try @VFSVersionFunc := dlsym(ModuleHandler, 'VFSVersion'); |
