Am 23.11.2011 20:48, schrieb Mark Knecht:
> On Wed, Nov 23, 2011 at 11:36 AM, Paul Hartman
> <[email protected]> wrote:
>> On Tue, Nov 22, 2011 at 9:57 PM, Pandu Poluan <[email protected]> wrote:
>>> I'm just wondering, what are the benefits & drawbacks of turning on
>>> "static" USE flag for sys-boot/grub?
>>
>> I seem to remember it has something to do with whether you're using
>> 32bit vs 64bit, but I can't be certain.
> 
> Fundamentally doesn't it build in any libraries, etc.? I don't know really.
> 
> I actually use the grub-static package on my systems vs grub and
> messing with USE flags. I think it was Duncan on the amd64 list that
> recommended that years ago but I haven't a clue as to what the reason
> was.
> 
> - Mark
> 

You are referring to this:
http://www.mail-archive.com/[email protected]/msg12619.html

Also be sure not to confuse sys-boot/grub with USE="static" and
sys-boot/grub-static. grub-static is required for AMD64 with a
no-multilib profile (because grub is always 32bit and you cannot build
grub on such a system). If you have a multilib profile, you can use
sys-boot/grub with USE="-static" just like me:

ldd /sbin/grub
        linux-gate.so.1 =>  (0xffffe000)
        libncurses.so.5 => /lib32/libncurses.so.5 (0xf76bf000)
        libc.so.6 => /lib32/libc.so.6 (0xf7535000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7531000)
        /lib/ld-linux.so.2 (0xf7733000)

As with all USE="static" flags, there is no real need for a normal
system unless it helps to avoid a /usr/lib dependency for a /bin or
/sbin binary which is not the case here. It also doesn't affect the boot
loader, only its installer.

Regards,
Florian Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to