mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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:
parent
c7f07df461
commit
f294f002f8
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue