summaryrefslogtreecommitdiff
path: root/development/cmocka
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-12-11 17:46:06 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit48acc286e9026c79ed983382a17eebd40a63d35f (patch)
tree7bbe74e0025191c1b24ed341d0a94a78c35ddb4b /development/cmocka
parent96fab913f75fa3df9bfbc3ae474d87750168ff8e (diff)
downloadslackbuilds-48acc286e9026c79ed983382a17eebd40a63d35f.tar.gz
development/cmocka: Fixed build with gcc-5.2.0.
Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/cmocka')
-rw-r--r--development/cmocka/cmocka.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/development/cmocka/cmocka.SlackBuild b/development/cmocka/cmocka.SlackBuild
index b589d95d4c..234cfefd99 100644
--- a/development/cmocka/cmocka.SlackBuild
+++ b/development/cmocka/cmocka.SlackBuild
@@ -69,6 +69,11 @@ 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 {} \;
+# Fix for gcc-5.2.0
+# "ISO C does not support ‘__FUNCTION__’ predefined identifier"
+sed -i -e 's/ -pedantic -pedantic-errors//' \
+ cmake/Modules/DefineCompilerFlags.cmake
+
mkdir -p build
cd build
cmake \