diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-12-13 20:25:14 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | cfe23600aa66f0de03eca388dab566551231f71b (patch) | |
tree | 96bee082de5b4c4873c9ae6656c4baac5f42b429 /games | |
parent | 5a7920d80c4d5576c96626ddf041a080cd31f36b (diff) | |
download | slackbuilds-cfe23600aa66f0de03eca388dab566551231f71b.tar.gz |
games/rocksndiamonds: 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 'games')
-rw-r--r-- | games/rocksndiamonds/rocksndiamonds.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/rocksndiamonds/rocksndiamonds.SlackBuild b/games/rocksndiamonds/rocksndiamonds.SlackBuild index 7feb5f5c44..778c5703f2 100644 --- a/games/rocksndiamonds/rocksndiamonds.SlackBuild +++ b/games/rocksndiamonds/rocksndiamonds.SlackBuild @@ -41,11 +41,11 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-fPIC" + SLKCFLAGS="-O2 -fPIC" else SLKCFLAGS="-O2" fi @@ -67,7 +67,7 @@ find -L . \ make clean make \ - EXTRA_CFLAGS="$SLKCFLAGS" \ + EXTRA_CFLAGS="$SLKCFLAGS -fgnu89-inline" \ RO_GAME_DIR=/usr/games \ RO_GAME_DIR=/usr/share/games/rocksndiamonds \ RW_GAME_DIR=/var/games/rocksndiamonds \ |