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 1 1 Don't use -Werror 2 2 That causes newer clang compilers to fail with: 3 3 error: 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 5 The target "doc/example-config" is a dependency of "install-examples" only, so 6 it runs in the destroot phase, add it to "all" to avoid that. 7 --- Makefile 8 +++ Makefile 6 9 @@ -18,7 +18,7 @@ 7 10 DEFINES+=-DGIT_HASH=\"$(GIT_HASH)\" 8 11 endif 9 12 10 13 -WARNFLAGS=-Werror -Wall -Wextra -Wunreachable-code 11 + WARNFLAGS=-Wall -Wextra -Wunreachable-code14 ++WARNFLAGS=-Wall -Wextra -Wunreachable-code 12 15 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