Allow overiding of variables set in abuild.conf
Some variables are predefined and set in abuild.conf
Examples are:
export CFLAGS="-Os -fomit-frame-pointer"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
export LDFLAGS="-Wl,--as-needed"
export JOBS=2
export MAKEFLAGS=-j$JOBS
USE_COLORS=1
SRCDEST=/var/cache/distfiles
REPODEST=$HOME/packages/
CLEANUP="srcdir bldroot pkgdir deps"
ERROR_CLEANUP="bldroot deps"
When running abuild from docker (or any other container solution) one would need to modify abuild.conf to unset them. It would be nicer if abuild would have built in defaults and we could override them with environmental variables or by modifying abuild.conf.
The most common option to override is MAKEFLAGS
, as the default JOB=2
is non optimal. Jobs should actually follow $(nproc)
to make use of multi core processor support.