From cdd451619a447860ceb29aafb2fe59e266f3d9c7 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 5 Oct 2009 20:35:50 +0200 Subject: Let ld resolve all symbols during binding This should prevent "Symbol lookup error" messages in runtime, causing program to abort. --- vfs/UVFSCore.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vfs/UVFSCore.pas') 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'); -- cgit v1.2.3