termux-packages/packages/newsboat/Makefile.patch

46 lines
1.4 KiB
Diff
Raw Normal View History

2019-03-30 00:30:10 +01:00
diff -u -r ../newsboat-2.15/Makefile ./Makefile
--- ../newsboat-2.15/Makefile 2019-03-23 16:51:04.000000000 +0000
+++ ./Makefile 2019-03-29 23:20:51.088253113 +0000
@@ -23,7 +23,7 @@
2017-12-27 00:48:46 +01:00
2017-10-15 00:36:54 +02:00
WARNFLAGS=-Werror -Wall -Wextra -Wunreachable-code
INCLUDES=-Iinclude -Istfl -Ifilter -I. -Irss
2018-03-30 22:56:21 +02:00
-BARE_CXXFLAGS=-std=c++11 -O2 -ggdb $(INCLUDES)
+BARE_CXXFLAGS=-std=c++11 -O2 $(INCLUDES)
2017-12-27 00:48:46 +01:00
LDFLAGS+=-L.
2017-10-15 00:36:54 +02:00
PACKAGE=newsboat
2019-03-30 00:30:10 +01:00
@@ -37,7 +37,7 @@
2018-03-30 22:56:21 +02:00
LDFLAGS+=-fprofile-arcs -ftest-coverage
endif
-CXXFLAGS:=$(BARE_CXXFLAGS) $(WARNFLAGS) $(DEFINES) $(CXXFLAGS)
+CXXFLAGS:=$(BARE_CXXFLAGS) $(WARNFLAGS) $(DEFINES) $(CXXFLAGS) $(CPPFLAGS)
2019-03-30 00:30:10 +01:00
CXXFLAGS_FOR_BUILD?=$(CXXFLAGS)
2018-03-30 22:56:21 +02:00
LIB_SOURCES:=$(shell cat mk/libboat.deps)
2019-03-30 00:30:10 +01:00
@@ -51,7 +51,7 @@
2017-12-27 00:48:46 +01:00
NEWSBOAT=newsboat
NEWSBOAT_SOURCES:=$(shell cat mk/newsboat.deps)
NEWSBOAT_OBJS:=$(patsubst %.cpp,%.o,$(NEWSBOAT_SOURCES))
-NEWSBOAT_LIBS=-lboat -lfilter -lpthread -lrsspp
+NEWSBOAT_LIBS=-lboat -lfilter -lrsspp -landroid-glob
2017-10-15 00:36:54 +02:00
RSSPPLIB_SOURCES=$(sort $(wildcard rss/*.cpp))
RSSPPLIB_OBJS=$(patsubst rss/%.cpp,rss/%.o,$(RSSPPLIB_SOURCES))
2019-03-30 00:30:10 +01:00
@@ -76,12 +76,12 @@
endif
2019-01-03 00:46:19 +01:00
CARGO_FLAGS+=--release
endif
-LDFLAGS+=-lnewsboat -lpthread -ldl
+LDFLAGS+=-lnewsboat
2017-12-27 00:48:46 +01:00
PODBOAT=podboat
PODBOAT_SOURCES:=$(shell cat mk/podboat.deps)
PODBOAT_OBJS:=$(patsubst %.cpp,%.o,$(PODBOAT_SOURCES))
-PODBOAT_LIBS=-lboat -lpthread
+PODBOAT_LIBS=-lboat
2017-10-15 00:36:54 +02:00
ifeq (, $(filter Linux GNU GNU/%, $(shell uname -s)))
2017-12-27 00:48:46 +01:00
NEWSBOAT_LIBS+=-liconv -lintl