diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2022-03-04 03:45:39 +0000 |
---|---|---|
committer | Dave Woodfall <dave@slackbuilds.org> | 2022-03-04 03:45:39 +0000 |
commit | d8921b7fc0363572d84b692d4385842d5277a682 (patch) | |
tree | c32d3b9fd61c87d20f5577ae8df564ef76d40302 /academic/tuxmath | |
parent | 8a5bd3f1e3fe3eef8ade6b7409b5b5fb32ffe692 (diff) | |
download | slackbuilds-d8921b7fc0363572d84b692d4385842d5277a682.tar.gz |
academic/tuxmath: Use -std=gnu11 and -fcommon.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'academic/tuxmath')
-rw-r--r-- | academic/tuxmath/tuxmath.SlackBuild | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/academic/tuxmath/tuxmath.SlackBuild b/academic/tuxmath/tuxmath.SlackBuild index 45b07f6215..ebed9cec3f 100644 --- a/academic/tuxmath/tuxmath.SlackBuild +++ b/academic/tuxmath/tuxmath.SlackBuild @@ -8,13 +8,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=tuxmath VERSION=${VERSION:-2.0.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -32,8 +32,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then @@ -58,7 +58,8 @@ find -L . \ # Fix .desktop. sed -i -e '/^##/d' -e '/^X/d' -e 's|Math;||' $PRGNAM.desktop -CFLAGS="$SLKCFLAGS" \ +LDFLAGS="-std=gnu11" \ +CFLAGS="$SLKCFLAGS -std=gnu11 -fcommon" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ |