emacs-devel
[Top][All Lists]
Advanced

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

Re: Bootstrap failure with new configure.bat (was Re: Proposed change to


From: Christoph Scholtes
Subject: Re: Bootstrap failure with new configure.bat (was Re: Proposed change to nt/INSTALL)
Date: Thu, 05 May 2011 21:28:29 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

OK, I think I have figured it out.

configure.bat generates:

USER_CFLAGS=-I"D:/Test Dir/GnuWin32/include" -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5.8/src -ID:/devel/emacs/gnutls-2.8.6/include

src/makefile l.570:
bootstrap-temacs:
$(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)

expands to

mingw32-make -w temacs CFLAGS="-I. -c -gdwarf-2 -g3 -mno-cygwin -mtune=pentium4 -O2 -DENABLE_CHECKING -DXASSERTS -fno-crossjumping -I"D:/Test Dir/GnuWin32/include" -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5.8/src -ID:/devel/emacs/gnutls-2.8.6/include -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 -DPURESIZE=5000000"

Looks like the $(ARGQUOTE) and the quotes in CFLAGS (from USER_CFLAGS) collide and lead to the "corruption" of CFLAGS for any further compiler calls.

If I manually escape the quotes in USER_CFLAGS in src/makefile as follows:

USER_CFLAGS=-I\"D:/Test Dir/GnuWin32/include\" -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5.8/src -ID:/devel/emacs/gnutls-2.8.6/include

everything compiles fine.

I am puzzled though, why this is not a problem on Ben's system.

Can we have configure.bat escape the quotes in the flag arguments?

Christoph



reply via email to

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