diff --git a/games/uqm-megamod/uqm-megamod.SlackBuild b/games/uqm-megamod/uqm-megamod.SlackBuild index 223efaf11e..faf64aa14a 100644 --- a/games/uqm-megamod/uqm-megamod.SlackBuild +++ b/games/uqm-megamod/uqm-megamod.SlackBuild @@ -81,7 +81,8 @@ sh build.sh uqm reprocess_config # use our flags: sed -i "s/-O3/$SLKCFLAGS/g" build.vars -sh build.sh uqm $MAKEFLAGS +# extract only -jNUM from MAKEFLAGS, any other flags, like -lNUM will break the build. +sh build.sh uqm $(printf '%s\n' "$MAKEFLAGS" | grep -o -e '-j[0-9]\+' | head -n 1) mkdir -p $PKG/usr/games install -s -m0755 UrQuanMasters $PKG/usr/games/$PRGNAM