about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2019-06-27 08:10:04 +0000
committerRich Felker <dalias@aerifal.cx>2019-07-04 12:03:18 -0400
commit4b5ba0765038f4e9c3424d63bd1ed3f2faef3048 (patch)
tree24585b676d9977cce72c4f98f73b9e0f71f22939 /configure
parent94751d8ee40a866fa81e392d5c525ea144d2ee20 (diff)
downloadmusl-4b5ba0765038f4e9c3424d63bd1ed3f2faef3048.tar.gz
musl-4b5ba0765038f4e9c3424d63bd1ed3f2faef3048.tar.xz
musl-4b5ba0765038f4e9c3424d63bd1ed3f2faef3048.zip
configure: make AR and RANLIB customizable
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
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