Merge pull request #1214 from nmeum/makeflags
xbps-src: Set the MAKEFLAGS environment variable
This commit is contained in:
commit
3964b12de6
1 changed files with 5 additions and 1 deletions
|
@ -217,7 +217,7 @@ setup_pkg() {
|
|||
[ -z "$pkg" ] && return 1
|
||||
|
||||
# Start with a sane environment
|
||||
unset -v PKG_BUILD_OPTIONS XBPS_CROSS_CFLAGS XBPS_CROSS_CXXFLAGS XBPS_CROSS_CPPFLAGS XBPS_CROSS_LDFLAGS
|
||||
unset -v MAKEFLAGS PKG_BUILD_OPTIONS XBPS_CROSS_CFLAGS XBPS_CROSS_CXXFLAGS XBPS_CROSS_CPPFLAGS XBPS_CROSS_LDFLAGS
|
||||
unset -v subpackages run_depends build_depends host_build_depends
|
||||
|
||||
unset_package_funcs
|
||||
|
@ -377,6 +377,10 @@ setup_pkg() {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${makejobs}" ]; then
|
||||
export MAKEFLAGS="${makejobs}"
|
||||
fi
|
||||
|
||||
export CFLAGS="$XBPS_TARGET_CFLAGS $XBPS_CFLAGS $XBPS_CROSS_CFLAGS $CFLAGS $dbgflags"
|
||||
export CXXFLAGS="$XBPS_TARGET_CXXFLAGS $XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"
|
||||
export CPPFLAGS="$XBPS_TARGET_CPPFLAGS $XBPS_CPPFLAGS $XBPS_CROSS_CPPFLAGS $CPPFLAGS"
|
||||
|
|
Loading…
Reference in a new issue