X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=Makefile.am;h=45a85af82597b50324234a3618e21ecc16d1c9b5;hp=a5cd05408b704c741f8931e79d277aee00ffe159;hb=4fa6320c11881c0999e046e073be2a6ff37a282c;hpb=e1ab245c9f04e34deb2f078b5ab4b98af8cb7b3b diff --git a/Makefile.am b/Makefile.am index a5cd0540..45a85af8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,8 +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 -fno-strict-aliasing \ - -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 @@ -50,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 \ @@ -164,6 +171,7 @@ EXTRA_DIST = \ archlinux \ debian \ rpm \ + examples \ README.WINDOWS \ programs/install.cmd \ programs/wimapply.c \