[Libreoffice] ld dynamic linker hash style

Francois Tigeot ftigeot at wolfpond.org
Wed Apr 6 08:04:24 PDT 2011


On Wed, Apr 06, 2011 at 03:59:34PM +0200, Petr Mladek wrote:
> 
> I have found that there already was a check for --hash-style. So, I used
> your draft and itegrated it into the existing test, see
> http://cgit.freedesktop.org/libreoffice/bootstrap/commit/?h=libreoffice-3-4&id=34e8665b5d3544c48086701d9f758ef0b9d900f8

Er, wrong move :-(

> Please, do not feel offended that I did not use your patch as is. The
> patch was nice but needed more love.

I'm well aware of that, I'm no autoconf specialist and it was a
work-in-progress.

Let me be offended on a different point ;-)

the test you have reused and the one I just wrote are for two different things.
We have two things here:

- the first check tested for --hash-style=gnu option support.
  ld supports it, result = yes

- the check I just wrote tested if binaries linked with the --hash-style=gnu
  can be run
  something in the system doesn't grok it, result = no

By integrating the two autoconf checks, we're back to a situation where
the build process happily links binaries with --hash-style=gnu and crashes
a few moments later trying to run them.

What I wanted to do is set a reasonable default of "gnu" or "sysv" for the
--with-hash-style option depending if the machine can run such binaries or
not.

-- 
Francois Tigeot


More information about the LibreOffice mailing list