--- ./qt3.SlackBuild.orig 2016-07-22 17:33:23.339990518 +0200 +++ ./qt3.SlackBuild 2016-07-22 19:02:45.726921438 +0200 @@ -131,17 +131,20 @@ -plugin-style-windows \ -enable-opengl +# Set QTDIR... +QTDIR=$PKG/opt/kde3/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION + +# Point LD_LIBRARY_PATH to the new libs +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib:$TMP/$SRCNAM-$VERSION/lib + # Strip jobs number from the MAKEFLAGS (needed) MAKEFLAGS=$(echo "$MAKEFLAGS" | sed "s/-j[0-999]//g") # We're using '-i' to work around a bug where the build tries to strip html files. # Build the important stuff: make -i -j1 -# Now set QTDIR... -QTDIR=$PKG/opt/kde3/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION - -# ... & point LD_LIBRARY_PATH to the new libs and "make + install" the rest... -LD_LIBRARY_PATH=$QTDIR/lib make install INSTALL_ROOT=$PKG +# "make + install" the rest... +make install INSTALL_ROOT=$PKG make -i symlinks sub-src sub-tools make install INSTALL_ROOT=$PKG