Author: Avi Halachmi (:avih) Date: Mon Nov 2 18:46:32 2015 +0200 configure: support custom ar with --ar=
Unified · Split
| @@ -163,6 +163,8 @@ for opt do · 162 unmodified lines | |||
| 163 | ;; | 163 | ;; |
| 164 | --elfinterp=*) tcc_elfinterp=`echo $opt | cut -d '=' -f 2` | 164 | --elfinterp=*) tcc_elfinterp=`echo $opt | cut -d '=' -f 2` |
| 165 | ;; | 165 | ;; |
| 166 | --ar=*) ar=`echo $opt | cut -d '=' -f 2` | ||
| 167 | ;; | ||
| 166 | --cc=*) cc=`echo $opt | cut -d '=' -f 2` | 168 | --cc=*) cc=`echo $opt | cut -d '=' -f 2` |
| 167 | ;; | 169 | ;; |
| 168 | --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}" | 170 | --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}" |
| @@ -305,6 +307,7 @@ Advanced options (experts only): · 136 unmodified lines | |||
| 305 | --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix] | 307 | --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix] |
| 306 | --sysroot=PREFIX prepend PREFIX to library/include paths [] | 308 | --sysroot=PREFIX prepend PREFIX to library/include paths [] |
| 307 | --cc=CC use C compiler CC [$cc] | 309 | --cc=CC use C compiler CC [$cc] |
| 310 | --ar=AR create archives using AR [$ar] | ||
| 308 | --extra-cflags= specify compiler flags [$CFLAGS] | 311 | --extra-cflags= specify compiler flags [$CFLAGS] |
| 309 | --extra-ldflags= specify linker options [] | 312 | --extra-ldflags= specify linker options [] |
| 310 | --cpu=CPU CPU [$cpu] | 313 | --cpu=CPU CPU [$cpu] |
| @@ -414,6 +417,7 @@ echo "Doc directory $docdir" · 103 unmodified lines | |||
| 414 | echo "Target root prefix $sysroot" | 417 | echo "Target root prefix $sysroot" |
| 415 | echo "Source path $source_path" | 418 | echo "Source path $source_path" |
| 416 | echo "C compiler $cc" | 419 | echo "C compiler $cc" |
| 420 | echo "ar $ar" | ||
| 417 | echo "cross compilers $build_cross" | 421 | echo "cross compilers $build_cross" |
| 418 | if test "$build_cross" = "no"; then | 422 | if test "$build_cross" = "no"; then |
| 419 | echo "Target CPU $cpu" | 423 | echo "Target CPU $cpu" |