On 01/29/2015 05:24 PM, Bruce Dubbs wrote:
> Robert Duffy wrote:
>> Hello!
>>
>> I've build a fresh stable LFS 7.6 x86 and installed openssl and openssh
>> from current BLFS.
>>
>> After that I stripped chrooted like described in
>> http://www.linuxfromscratch.org/lfs/view/stable/chapter06/strippingagain.html
>> but with "--strip-unneeded" instead of "--strip-debug" ( as mentioned
>> under
>> http://www.linuxfromscratch.org/blfs/view/svn/introduction/unpacking.html ).
>>
>>
>> After that my GRUB2 (and probably something else too) was destroyed.
>>
>> "grub-install /dev/sda1" doesn't work after that. I got "error: disk
>> 'hd0,msdos1' not found."
>>
>> When I strip just with "--strip-debug" everything is fine.
>>
>> Did I used the "--strip-unneeded" option in a wrong way?
> 
> 
> --strip-unneeded should not be run on libraries.
> 
>   -- Bruce
> 

I have been using --strip-unneeded on shared libraries for a long time now and 
no problems are present.

Maybe the issue is a bit different with static libs, but then again, I used it 
on llvm static libs and
didn't notice a single problem there either. Also, --strip-unneeded is the only 
way to strip kernel
modules properly. I can confirm though that the grub package is affected by 
that and the modules get
destroyed.

-- 
Note: My last name is not Krejzi.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to