Re: Bug#4550: Build of "ae" fails since it's statically linked
On Sun, 22 Sep 1996, Dale Scheetz wrote:
> On Sun, 22 Sep 1996, Christoph Lameter wrote:
> > The N option is used to statically link a program. What manpage were you
> > looking at?
>
> The man page is for ld. The gcc man page says ld is used to link.
> The gcc man page also says that -static is the proper option for creating
> static linked executables.
correct. but -N will be passed to the linker, and
ld will on some architectures like m68k-linux or
sparc-sun-sunos4 _implicitely_ use static linkage
when -N is given (writable text segments and shared
libraries contradict each other somehow).
on the other hand: why is -N uses so often? apart
from some weired, very special applications it's never
needed. writable text segments are really _very_ bad
and i've seen no place until now where it's really needed.
writable data segments can, in most cases, be avoided with
-fwritable-string in the gcc call, if one looks for a
quick-n-dirty hack and doesn't like to fix broken c code.
but in 99% of all packages (debian and non-debian)
where i've seen it, -N can be simply be removed without
any problems, it's not needed. so please remove it, unless
you have realy good reason why you want to write in your
text/data segment.
jjm
--
Juergen Menden | Disclaimer: The opinions expressed by me,
tel: +49 (89) 289 - 22387 +-----------+ are (usually) not the opinions
e-mail: menden@informatik.tu-muenchen.de | of anyone else on this planet.
Hi! I'm a .signature virus! Add me to your .signature and join in the fun!
Reply to: