X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=Makefile.am;h=45a85af82597b50324234a3618e21ecc16d1c9b5;hb=d55cda59032e0abe5f71cd6f16ade943d2713fee;hp=6feab393f3be127b5f33e75336e7148f278fae51;hpb=02e26e9e4c0c56288a94c8c50e5b05a6da9a48dd;p=wimlib diff --git a/Makefile.am b/Makefile.am index 6feab393..45a85af8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,16 @@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I$(top_srcdir)/include $(WINDOWS_CPPFLAGS) \ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -AM_CFLAGS = -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes + +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 @@ -49,7 +58,6 @@ libwim_la_SOURCES = \ src/xpress-decompress.c \ include/wimlib/apply.h \ include/wimlib/assert.h \ - include/wimlib/buffer_io.h \ include/wimlib/callback.h \ include/wimlib/capture.h \ include/wimlib/compiler.h \