В общем есть вот такой билд https://github.com/AndDT/SlackBuilds/blob/master/psi-plus/psi-plus.SlackBuild его я изменял, дописывая:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i686) ARCH=i686 ;;
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
/usr/bin/qconf
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
$WK \
$WB \
$PG \
--release
...
g++ -c -pipe -g -O2 -march=i486 -mtune=i686 -fPIC -Wall -W -D_REENTRANT -DIRISNET_STATIC -DWHITEBOARDING -DHAVE_XSS -DHAVE_ENCHANT -DPSI_PLUGINS -DHAVE_CONFIG -DIRIS_XMPP_JID_DEPRECATED -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtNetwork -I/usr/lib/qt/include -I/usr/include/QtCrypto -I/usr/include/enchant -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../jdns -I../corelib -Icutestuff -Ilegacy -I. -o qjdns.o ../../jdns/qjdns.cpp
/usr/lib/qt/bin/moc -DIRISNET_STATIC -DWHITEBOARDING -DHAVE_XSS -DHAVE_ENCHANT -DPSI_PLUGINS -DHAVE_CONFIG -DIRIS_XMPP_JID_DEPRECATED -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtNetwork -I/usr/lib/qt/include -I/usr/include/QtCrypto -I/usr/include/enchant -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../jdns -I../corelib -Icutestuff -Ilegacy -I. ../corelib/jdnsshared.cpp -o jdnsshared.moc
g++ -c -pipe -g -O2 -march=i486 -mtune=i686 -fPIC -Wall -W -D_REENTRANT -DIRISNET_STATIC -DWHITEBOARDING -DHAVE_XSS -DHAVE_ENCHANT -DPSI_PLUGINS -DHAVE_CONFIG -DIRIS_XMPP_JID_DEPRECATED -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtNetwork -I/usr/lib/qt/include -I/usr/include/QtCrypto -I/usr/include/enchant -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../jdns -I../corelib -Icutestuff -Ilegacy -I. -o jdnsshared.o ../corelib/jdnsshared.cpp
/usr/lib/qt/bin/moc -DIRISNET_STATIC -DWHITEBOARDING -DHAVE_XSS -DHAVE_ENCHANT -DPSI_PLUGINS -DHAVE_CONFIG -DIRIS_XMPP_JID_DEPRECATED -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtNetwork -I/usr/lib/qt/include -I/usr/include/QtCrypto -I/usr/include/enchant -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../jdns -I../corelib -Icutestuff -Ilegacy -I. ../corelib/objectsession.cpp -o objectsession.moc
...