bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: relocatable by default?


From: Bruno Haible
Subject: Re: relocatable by default?
Date: Wed, 3 Oct 2007 13:40:32 +0200
User-agent: KMail/1.5.4

Hello Sylvain,

Sylvain Beucler wrote:
> I noticed that even if I imported the 'relocatable-prog' module,
> ./configure still requires the user to type '--enable-relocatable' to
> take this into account.
> 
> I guess that most users won't notice this switch, and compile a
> non-relocatable binary.
> 
> Is there a reason why ENABLE_RELOCATABLE is not set to 1 by default?

There are two reasons:

  1) On all platforms except Linux, --enable-relocatable creates wrappers
     for each installed program, thus slowing down a bit the startup time
     of the programs. It is not wise to have the default behaviour depend
     on the platform, so I prefer to have it turned off by default.

  2) There is a security issue involved when installing shared libraries with
     --enable-relocatable, if the documentation in doc/relocatable.texi
     is ignored. I wouldn't bet that every user of --enable-relocatable
     actually reads and follows this documentation.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]