From: Fangrui Song Date: Thu, 27 Jun 2019 08:10:04 +0000 (+0000) Subject: configure: make AR and RANLIB customizable X-Git-Tag: v1.1.23~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4b5ba0765038f4e9c3424d63bd1ed3f2faef3048;p=oweals%2Fmusl.git configure: make AR and RANLIB customizable --- diff --git a/configure b/configure index 60e0b1fc..86801281 100755 --- a/configure +++ b/configure @@ -172,6 +172,8 @@ case "$arg" in --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; -* ) echo "$0: unknown option $arg" ;; +AR=*) AR=${arg#*=} ;; +RANLIB=*) RANLIB=${arg#*=} ;; CC=*) CC=${arg#*=} ;; CFLAGS=*) CFLAGS=${arg#*=} ;; CPPFLAGS=*) CPPFLAGS=${arg#*=} ;; @@ -734,6 +736,8 @@ cat << EOF # This version of config.mak was generated by: # $cmdline # Any changes made here will be lost if configure is re-run +AR = ${AR:-\$(CROSS_COMPILE)ar} +RANLIB = ${RANLIB:-\$(CROSS_COMPILE)ranlib} ARCH = $ARCH SUBARCH = $SUBARCH ASMSUBARCH = $ASMSUBARCH