diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2017-12-27 00:48:28 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2017-12-27 18:10:32 -0600 |
commit | d8f337bb0a5367786ac391c3cd942613b9cd333f (patch) | |
tree | 25fdf1ead4633a1d37563c0eb5609d24024797a1 /libraries/rapidjson/rapidjson.SlackBuild | |
parent | 4b306a3452bc27b996722d8a523686baa0c60b5c (diff) | |
download | slackbuilds-d8f337bb0a5367786ac391c3cd942613b9cd333f.tar.gz |
libraries/rapidjson: Fix build with gcc7
I ran into this trying to build rapidjson on ARM -current:
https://github.com/Tencent/rapidjson/pull/941
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/rapidjson/rapidjson.SlackBuild')
-rw-r--r-- | libraries/rapidjson/rapidjson.SlackBuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/rapidjson/rapidjson.SlackBuild b/libraries/rapidjson/rapidjson.SlackBuild index 85a240ac48..474a7d13e4 100644 --- a/libraries/rapidjson/rapidjson.SlackBuild +++ b/libraries/rapidjson/rapidjson.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=rapidjson VERSION=${VERSION:-1.1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,6 +69,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 {} \; +# Patch for -current but should be harmless on -stable +patch -p1 < $CWD/fix-build-on-gcc7.diff + mkdir -p build cd build cmake \ |