[U-Boot-Users] Patch: Fix tools building in Cygwin environment
Yuli Barcohen
yuli at arabellasw.com
Mon Jul 19 22:07:25 CEST 2004
Host tools in tools/ sub-directory fail to compile in the latest Cygwin
environment. This failure caused by unnecessary __WIN32__ definition and
incorrect header files search order which can affect other platforms
too. The attached patch fixes the problem.
CHANGELOG
- Fix host tools building in Cygwin environment
- Fix header files search order for host tools
--
========================================================================
Yuli Barcohen | Phone +972-9-765-1788 | Software Project Leader
yuli at arabellasw.com | Fax +972-9-765-7494 | Arabella Software, Israel
========================================================================
-------------- next part --------------
Index: tools/Makefile
===================================================================
RCS file: /home/CVS/u-boot/u-boot/tools/Makefile,v
retrieving revision 1.1.1.7
diff -p -u -r1.1.1.7 Makefile
--- tools/Makefile 22 Dec 2003 14:36:12 -0000 1.1.1.7
+++ tools/Makefile 19 Jul 2004 19:56:56 -0000
@@ -96,12 +96,10 @@ endif
#
ifeq ($(HOSTOS),cygwin)
SFX = .exe
-HOST_CFLAGS += -D__WIN32__
else
SFX =
endif
-
#
# Include this after HOSTOS HOSTARCH check
# so that we can act intelligently.
@@ -111,7 +109,7 @@ include $(TOPDIR)/config.mk
#
# Use native tools and options
#
-CPPFLAGS = -I../include -I.. -DTEXT_BASE=$(TEXT_BASE) -DUSE_HOSTCC
+CPPFLAGS = -idirafter ../include -DTEXT_BASE=$(TEXT_BASE) -DUSE_HOSTCC
CFLAGS = $(HOST_CFLAGS) $(CPPFLAGS) -O
AFLAGS = -D__ASSEMBLY__ $(CPPFLAGS)
CC = $(HOSTCC)
More information about the U-Boot
mailing list