Ticket #57555: newsboat.diff

File newsboat.diff, 1.3 KB (added by Raimondi (Israel Chauca Fuentes), 6 years ago)
  • net/newsboat/files/patch-Makefile.diff

    old new  
    11Don't use -Werror
    22That causes newer clang compilers to fail with:
    33error: lambda capture 'silent' is not used [-Werror,-Wunused-lambda-capture]
    4 --- Makefile.orig       2017-09-22 15:01:50.000000000 -0500
    5 +++ Makefile    2017-11-14 08:24:04.000000000 -0600
     4
     5The target "doc/example-config" is a dependency of "install-examples" only, so
     6it runs in the destroot phase, add it to "all" to avoid that.
     7--- Makefile
     8+++ Makefile
    69@@ -18,7 +18,7 @@
    710 DEFINES+=-DGIT_HASH=\"$(GIT_HASH)\"
    811 endif
    912 
    1013-WARNFLAGS=-Werror -Wall -Wextra -Wunreachable-code
    11 +WARNFLAGS=-Wall -Wextra -Wunreachable-code
     14++WARNFLAGS=-Wall -Wextra -Wunreachable-code
    1215 INCLUDES=-Iinclude -Istfl -Ifilter -I. -Irss
    13  BARE_CXXFLAGS=-std=c++11 -ggdb $(INCLUDES)
    14  CXXFLAGS+=$(BARE_CXXFLAGS) $(WARNFLAGS) $(DEFINES)
     16 BARE_CXXFLAGS=-std=c++11 -O2 -ggdb $(INCLUDES)
     17 LDFLAGS+=-L.
     18@@ -81,7 +81,7 @@
     19 TEXTCONV=./txt2h
     20 RM=rm -f
     21 
     22-all: doc $(NEWSBOAT) $(PODBOAT) mo-files
     23+all: doc $(NEWSBOAT) $(PODBOAT) mo-files doc/example-config
     24 
     25 NB_DEPS=xlicense.h $(LIB_OUTPUT) $(FILTERLIB_OUTPUT) $(NEWSBOAT_OBJS) $(RSSPPLIB_OUTPUT)
     26