xbps-src: Define XBPS_GCC_VERSION
To simplify testing for the currently used gcc version introduce global environment variables to avoid running `gcc --version`.
This commit is contained in:
4
xbps-src
4
xbps-src
@@ -403,6 +403,10 @@ readonly XBPS_VERSION_REQ="0.46"
|
||||
readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}')
|
||||
readonly XBPS_SRC_VERSION="113"
|
||||
export XBPS_MACHINE=$(xbps-uhelper arch)
|
||||
readonly XBPS_GCC_VERSION_MAJOR=4
|
||||
readonly XBPS_GCC_VERSION_MINOR=9
|
||||
readonly XBPS_GCC_VERSION_BUILD=4
|
||||
readonly XBPS_GCC_VERSION=${XBPS_GCC_VERSION_MAJOR}.${XBPS_GCC_VERSION_MINOR}.${XBPS_GCC_VERSION_BUILD}
|
||||
|
||||
#
|
||||
# main()
|
||||
|
||||
Reference in New Issue
Block a user