ham/twhamqth: Use -fcommon. i486->i586. Fix README.

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

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
JK Wood 2022-02-12 15:35:50 +00:00 committed by Willy Sudiarto Raharjo
parent 704bb4a131
commit 5c6e9106da
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 11 additions and 12 deletions

View file

@ -1,10 +1,10 @@
This program uses a free XML feed from the HamQTH.com website of Petr,
OK2CQR. His callsign database has over 1.3 million callsigns and is very
fast, returning the station information in just a few seconds. Thanks to
This program uses a free XML feed from the HamQTH.com website of Petr,
OK2CQR. His callsign database has over 1.3 million callsigns and is very
fast, returning the station information in just a few seconds. Thanks to
Petr for a great service.
Given a ham radio callsign, twHamQTH will display the name, address,
city and country of the station. All of the station data can be use
by other programs.
Given a ham radio callsign, twHamQTH will display the name, address,
city and country of the station. All of the station data can be use by
other programs.
You'll need a free HamQTH.com login to use this software.

View file

@ -24,13 +24,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=twhamqth
VERSION=${VERSION:-2.0}
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
@ -48,8 +48,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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -77,8 +77,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS -fcommon" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \