X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.in;h=827d04f9f7415a698bb9e520dc7c06e6a416084d;hp=c5d5027a09858b256660b18fb67bb26efe34d5c4;hb=a3b11ab44695864ba80eb3d883cb6c99e394b36a;hpb=5c556c52f1196cea4536d36b683372de532943a9 diff --git a/Makefile.in b/Makefile.in index c5d5027a..827d04f9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -26,13 +26,15 @@ DEBUG_CPPFLAGS += -Wredundant-decls # many warnings about trivial stuff # CPPFLAGS += -Wconversion -# uncomment this if your compiler supports it -# LDFLAGS += -Wl,--gc-sections - +ifeq ($(uname_S),Linux) + CPPFLAGS += -fdata-sections -ffunction-sections + LDFLAGS += -Wl,--gc-sections + CPPFLAGS += -Wstrict-prototypes + CPPFLAGS += -Wshadow +endif CPPFLAGS += -Os CPPFLAGS += -Wall CPPFLAGS += -Wuninitialized -CPPFLAGS += -Wstrict-prototypes CPPFLAGS += -Wchar-subscripts CPPFLAGS += -Wformat-security CPPFLAGS += -DBINDIR='"$(BINDIR)"' @@ -43,9 +45,7 @@ CPPFLAGS += -DCC_VERSION='"$(cc_version)"' CPPFLAGS += -Werror-implicit-function-declaration CPPFLAGS += -Wmissing-format-attribute CPPFLAGS += -Wunused-macros -CPPFLAGS += -Wshadow CPPFLAGS += -Wbad-function-cast -CPPFLAGS += -fdata-sections -ffunction-sections CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) CPPFLAGS += @SSL_CPPFLAGS@ CPPFLAGS += @ncurses_cppflags@