X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=Makefile.am;h=45a85af82597b50324234a3618e21ecc16d1c9b5;hp=75ed97168a1f8f8c3d4565235aca651541559b22;hb=19fd5bbc4f64cc8bf735f7c2c0bb864876998cf4;hpb=f5d26d6005ba759762bec8c7cd45a738e577a8a7 diff --git a/Makefile.am b/Makefile.am index 75ed9716..45a85af8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,6 +7,11 @@ AM_CFLAGS = -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes \ -Werror-implicit-function-declaration \ -fno-common -Wundef -Wno-pointer-sign +if WINDOWS_NATIVE_BUILD +# This option is needed to make packed structures work as expected +# with gcc 4.7+ (mingw) on Windows. +AM_CFLAGS += -mno-ms-bitfields +endif lib_LTLIBRARIES = libwim.la