[Libreoffice] [PATCH] Get rid of --noinhibit-exec

Lubos Lunak l.lunak at suse.cz
Fri Jan 21 11:31:46 PST 2011


 Hello,

 I want to apply the attached bootstrap patch. It disables the very 
interesting feature of creating unusable binaries when one gets unlucky. 
From 'man ld':

--noinhibit-exec
 Retain the executable output file whenever it is still usable.  Normally, the 
linker will not produce an output file if it encounters errors during the 
link process; it exits without writing an output file when it issues any 
error whatsoever.

 Binutils developers apparently have a very relaxed definition of usable, 
because this option can lead to binaries that are very unusable without 
advanced hackery. Specifically, I've found out about this because when 
kdefilepicker (a helper binary for KDE3 support) gets linked against the 
wrong version of kdelibs, ld will report all the undefined references, 
hardcode the KDE4 .so number and then will happily "successfully" finish 
creating the binary, no matter how useless it is in the end.

 I'm not quite sure about the HP part of the patch, but since I assume there 
the ld option has the same brain-damaged result and I see no good reason for 
that option's existence anywhere in LO, I've included it in the removal too.

-- 
 Lubos Lunak
 l.lunak at suse.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noinhibit-exec-removal.diff
Type: text/x-diff
Size: 1887 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110121/7d6382b3/attachment.diff>


More information about the LibreOffice mailing list