summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2017-05-05 23:21:44 +0200
committer Matteo Bernardini2019-08-10 07:07:32 +0200
commite1b69f5c5d715a62d70ebec7cf3bfc730767aa7b (patch)
tree8e368ca86763e2ff019538c05ab9b092a21ad44d
parent4b75a86e141dc33934610bafa3feef16dd33e1b3 (diff)
downloadslackbuilds-fbreader.tar.gz
office/fbreader: Disabled narrowing warnings.fbreader
Needed for gcc >= 6.x Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--office/fbreader/fbreader.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/office/fbreader/fbreader.SlackBuild b/office/fbreader/fbreader.SlackBuild
index d5c54adeac..d19b2904a3 100644
--- a/office/fbreader/fbreader.SlackBuild
+++ b/office/fbreader/fbreader.SlackBuild
@@ -56,6 +56,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Needed for gcc >= 6.x
+sed -i "s|-Wall|-Wall -Wno-narrowing|" makefiles/arch/desktop.mk
+
patch -p1 < $CWD/fbreader-0.99.4.patch
export TARGET_ARCH=desktop