[Top][All Lists]

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

Re: New emacs maintainer for cygwin

From: Angelo Graziosi
Subject: Re: New emacs maintainer for cygwin
Date: Wed, 20 May 2009 10:05:05 +0200
User-agent: Thunderbird (Windows/20090302)

Ken Brown wrote:

followed by this workaround:

    To work around this, build Emacs like this:

      LDFLAGS='-Wl,--enable-auto-import -Wl,--enable-auto-image-base' 
      make LD='$(CC)'
      make LD='$(CC)' install

    This produces an Emacs binary that is independent of rebasing.

    Note that you _must_ use LD='$(CC)' in the last two commands above, to
    prevent GCC from passing the "--image-base 0x20000000" option to the
    linker, which is what it does by default.  That option produces an
    Emacs binary with the base address 0x20000000, which will cause Emacs
    to hang after Cygwin DLLs are rebased.

That workaround was born when I started to build Emacs. I found that the
resulting build where more stable. Really it does not help in rebasing,
which regards only DLL and not EXE, but it helps to build ALL the EXE
(not only emacs.exe etc.) with those flags (-Wl,--enable...). To be
honest, it is some time that in my build I use only:


which should be recommended. Indeed, if I have well understood the
discussion on Cygwin lists, in a future release of binutils, the new
ld.exe should add automatically those flags in building exe file.

Obviosly, those flags should be applied via cigwin.h, but the patch I
found added them only for emacs.exe so I omitted to propose the patch.


Don't know much about geography
Don't know much trigonometry
Don't know much about algebra

   Sam Cooke, Wonderful World

reply via email to

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