X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile;h=c9807de4bc2e61f57924b52e8d574efebf14814c;hp=4b312806eb78881a7c68f23746d369b3f0d917d3;hb=d455b0085d65cd25915a34d84f894a4950d313a2;hpb=fa5c98ab9c9fa86e7078011c6c95597b74be2103 diff --git a/Makefile b/Makefile index 4b312806e..c9807de4b 100644 --- a/Makefile +++ b/Makefile @@ -105,11 +105,11 @@ GCC_LIB := $(shell $(CC) -print-libgcc-file-name ) # check if compiler option is supported cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi;} -CFLAGS += -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith -Wstrict-prototypes -Wsign-compare -CFLAGS += $(call cc-supports, -Wno-pointer-sign, ) +CFLAGS += -Wall -fno-builtin -Wchar-subscripts -Wpointer-arith \ + -Wstrict-prototypes -Wsign-compare CFLAGS += $(call cc-supports, -Wdeclaration-after-statement, ) CFLAGS += -pipe -CFLAGS += -D_GNU_SOURCE +CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 # use '-Os' optimization if available, else use -O2 OPTFLAGS := $(call cc-supports, -Os, -O2)