network/elinks: Fix SLKCFLAGS.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
David Woodfall 2020-11-04 12:54:07 +00:00 committed by Willy Sudiarto Raharjo
parent c7f07df461
commit f294f002f8
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -23,7 +23,7 @@
PRGNAM=elinks
VERSION=${VERSION:-git20131231}
BUILD=${BUILD:-12}
BUILD=${BUILD:-13}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -41,20 +41,20 @@ OUTPUT=${OUTPUT:-/tmp}
# Added -fno-strict-aliasing -Wno-pointer-sign for a much more peaceful build
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-g0 -O0 -march=i486 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign"
SLKCFLAGS="-O2 -march=i486 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-g0 -O0 -march=i586 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign"
SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-g0 -O0 -march=i686 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-g0 -O0 -fPIC -fno-strict-aliasing -Wno-pointer-sign"
SLKCFLAGS="-O2 -fPIC -fno-strict-aliasing -Wno-pointer-sign"
SLKLDFLAGS="-m64"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-go -O0"
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi