|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] gnu-smalltalk 3.4.2 build fails (+ issue tracker web bug) |
Date: | Tue, 03 May 2011 12:40:09 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 05/03/2011 12:52 AM, Roland Plüss wrote:
Should this not be the job of the dynamic linker to resolve libraries instead of the app messing with it?
No, the dynamic does assume that the app know the soname (it is a bad idea to pass things like "libfoo.so" without the full soname to the dynamic linker, because you don't know what ABI you'll get; and anyway it doesn't work for glibc).
So, it is the job of the VM to insulate this from Smalltalk programs. Then they can do
DLD addLibrary: 'libc' rather than DLD addLibrary: 'libc.so.6' or DLD addLibrary: 'libSystem.dylib' and so on. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |