summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2017-05-05 23:21:44 +0200
committer Matteo Bernardini2019-12-01 08:43:01 +0100
commitbc836ad1d19edb2de3059de7e945168f41e54031 (patch)
tree6ad5bf06dee139d1ab7049550f2a6706bdaace5d
parent0a75303e7d6b044cf86185ec25d8ed078aae15ee (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