diff options
-rw-r--r-- | games/uqm-megamod/uqm-megamod.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/uqm-megamod/uqm-megamod.SlackBuild b/games/uqm-megamod/uqm-megamod.SlackBuild index 223efaf11e186..faf64aa14a3b7 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 |