+4
−1
+2
−1
+1
−1
+13
−6
Loading
$CC, $CXX and $LD can be set. If we try compiliation with LTO and non-default gcc version: CC=gcc-13 CXX=g++-13 ./configure --enable-lto Then compilation may fail because srcipts/detect_cc.sh is forcing ar to system-default gcc-ar. Depending on version, gcc-ar may be compatible or not. Allow user to configure AR and rename CCAR present in Makefiles to AR. If it is set by user then accept it uncoditionally. When determining ar and --enable-lto is used, set it to gcc-ar only if CC_TYPE="gcc" otherwise fallback to default "ar". In case of regression, proper AR can be specified manually. Change-Id: I5aea605f898bd67a28a330bf0111831a39ea814d Signed-off-by:Mariusz Tkaczyk <mariusz.tkaczyk@dell.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26095 Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Konrad Sztyber <ksztyber@nvidia.com>