aboutsummaryrefslogtreecommitdiffstats
path: root/win64
diff options
context:
space:
mode:
authorShao Miller <sha0.miller@gmail.com>2012-10-11 11:59:37 -0400
committerMatt Fleming <matt.fleming@intel.com>2012-10-11 21:09:45 +0100
commit7d9ee65cc9577eb69782a49a34895ae80820e9ff (patch)
tree4de1c346fa606b9a2ea1470d90a6f43759257e30 /win64
parent49bb31df33589a9bff1e7505acfe5ff7a37caf64 (diff)
downloadsyslinux-7d9ee65cc9577eb69782a49a34895ae80820e9ff.tar.gz
syslinux-7d9ee65cc9577eb69782a49a34895ae80820e9ff.tar.xz
syslinux-7d9ee65cc9577eb69782a49a34895ae80820e9ff.zip
win: Add -mno-ms-bitfields
Recent MinGW GCCs now have -mms-bitfields on by default, but it appears to break our intentions with __attribute__((packed)). See GCC bug 52991, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 The undesired behaviour was noticed when the win32 installer had troubles identifying the media type field of a boot sector. Signed-off-by: Shao Miller <sha0.miller@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'win64')
-rw-r--r--win64/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/win64/Makefile b/win64/Makefile
index fe60793c..744b0b3d 100644
--- a/win64/Makefile
+++ b/win64/Makefile
@@ -21,8 +21,8 @@
OSTYPE = $(shell uname -msr)
# Don't know how to do a native compile here...
WINPREFIX := $(shell ./find-mingw64.sh gcc)
-WINCFLAGS := $(GCCWARN) -Wno-sign-compare -Os -fomit-frame-pointer \
- -D_FILE_OFFSET_BITS=64
+WINCFLAGS := -mno-ms-bitfields $(GCCWARN) -Wno-sign-compare -Os \
+ -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
WINLDFLAGS := -Os -s
WINCFLAGS += -I. -I../win -I.. -I../libfat -I../libinstaller \