xbps-src: introduce build profiles and use it by default.
common/build-profiles contains the compilation flags used in native builds, and are defined per architecture: - x86_64 (glibc) - x86_64-musl (musl) If XBPS_CFLAGS or XBPS_CXXFLAGS are set in `etc/conf`, the settings from the build profile will be overrided.
This commit is contained in:
parent
aa4d7feb93
commit
c2bd01c8d3
11 changed files with 27 additions and 4 deletions
3
xbps-src
3
xbps-src
|
@ -308,7 +308,7 @@ readonly XBPS_VERSION_REQ="0.41"
|
|||
|
||||
readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}')
|
||||
readonly XBPS_SRC_VERSION="113"
|
||||
readonly XBPS_MACHINE=$(uname -m)
|
||||
export XBPS_MACHINE=$(uname -m)
|
||||
|
||||
#
|
||||
# main()
|
||||
|
@ -447,6 +447,7 @@ fi
|
|||
|
||||
if [ -s $XBPS_MASTERDIR/.xbps_chroot_init ]; then
|
||||
export XBPS_ARCH=$(cat $XBPS_MASTERDIR/.xbps_chroot_init)
|
||||
export XBPS_MACHINE=$XBPS_ARCH
|
||||
if [ "$XBPS_MACHINE" = "x86_64" -a "$XBPS_ARCH" = "i686" -a -z "$IN_CHROOT" ]; then
|
||||
# reconfigure pkgs via linux32
|
||||
linux32 xbps-reconfigure -r ${XBPS_MASTERDIR} -a &>/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue