From 03e256b0f004bfe1dbe4006878b4479f25484b74 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 19 Aug 2005 17:10:17 -0400 Subject: A few minor fixes to get things to build on Cygwin. README: Clarify cygwin EIO error explanation. build/SConstruct: Cygwin header files cause uninitialized var warnings. dev/ide_ctrl.cc: Get rid of unnecessary byte-swap calls, some of which were too ambiguous for cygwin (or gcc 3.4.4). dev/pcidev.cc: Disambiguate arg for overloaded byte swap operation (and fix it to be the correct one). --HG-- extra : convert_revision : be37c6315aacbec6332b1d09e726b39b4aa18dce --- build/SConstruct | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build/SConstruct') diff --git a/build/SConstruct b/build/SConstruct index 87c215d41..8819e3649 100644 --- a/build/SConstruct +++ b/build/SConstruct @@ -254,6 +254,9 @@ default_env.Append(ENV = { 'M5_EXT' : EXT_SRCDIR }) default_env.Append(CCFLAGS='-pipe') default_env.Append(CCFLAGS='-fno-strict-aliasing') default_env.Append(CCFLAGS=Split('-Wall -Wno-sign-compare -Werror -Wundef')) +if sys.platform == 'cygwin': + # cygwin has some header file issues... + default_env.Append(CCFLAGS=Split("-Wno-uninitialized")) default_env.Append(CPPPATH=[os.path.join(EXT_SRCDIR + '/dnet')]) # libelf build is described in its own SConscript file. Using a -- cgit v1.2.3