From cfe23600aa66f0de03eca388dab566551231f71b Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sun, 13 Dec 2015 20:25:14 +0000 Subject: games/rocksndiamonds: Fixed build with gcc-5.2.0. Signed-off-by: David Spencer Signed-off-by: Willy Sudiarto Raharjo --- games/rocksndiamonds/rocksndiamonds.SlackBuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'games') diff --git a/games/rocksndiamonds/rocksndiamonds.SlackBuild b/games/rocksndiamonds/rocksndiamonds.SlackBuild index 7feb5f5c4403..778c5703f21b 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 \ -- cgit v1.2.3