summaryrefslogtreecommitdiff
path: root/vfs
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-05 20:35:50 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-05 20:35:50 +0200
commitcdd451619a447860ceb29aafb2fe59e266f3d9c7 (patch)
treeb9c4665d444f8cfb4f084b03938c2b5e70ddcdc1 /vfs
parentf02993636a68e2a611acf6c4519cf6f139ab4737 (diff)
downloadtuxcmd-cdd451619a447860ceb29aafb2fe59e266f3d9c7.tar.xz
Let ld resolve all symbols during binding
This should prevent "Symbol lookup error" messages in runtime, causing program to abort.
Diffstat (limited to 'vfs')
-rw-r--r--vfs/UVFSCore.pas2
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');