• Home
  • Raw
  • Download

Lines Matching +full:musl +full:- +full:tools

13   --srcdir=DIR            source directory [detected]
16 --prefix=PREFIX main installation prefix [/usr/local/musl]
17 --exec-prefix=EPREFIX installation prefix for executable files [PREFIX]
20 --bindir=DIR user executables [EPREFIX/bin]
21 --libdir=DIR library files for the linker [PREFIX/lib]
22 --includedir=DIR include files for the C compiler [PREFIX/include]
23 --syslibdir=DIR location for the dynamic linker [/lib]
26 --target=TARGET configure to run on target TARGET [detected]
27 --host=HOST same as --target
28 --build=BUILD build system type; used only to infer cross-compiling
31 --enable-optimize=... optimize listed components for speed over size [auto]
32 --enable-debug build with debugging information [disabled]
33 --disable-warnings build with recommended warnings flags [enabled]
34 --enable-wrapper=... build given musl toolchain wrapper [auto]
35 --disable-shared inhibit building shared library [enabled]
36 --disable-static inhibit building static library [enabled]
39 --with-malloc=... choose malloc implementation [mallocng]
43 CFLAGS C compiler flags [-Os -pipe ...]
44 CROSS_COMPILE prefix for cross compiler and tools [none]
56 tr '\n' ' ' <<EOF | grep '^[-[:alnum:]_=,./:]* $' >/dev/null 2>&1 && { echo "$1" ; return 0 ; }
59 printf %s\\n "$1" | sed -e "s/'/'\\\\''/g" -e "1s/^/'/" -e "\$s/\$/'/" -e "s#^'\([-[:alnum:]_,./:]*…
65 trycc () { test -z "$CC" && cmdexists "$1" && CC=$1 ; }
77 if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
89 if $CC $CFLAGS_TRY $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
103 if $CC $LDFLAGS_TRY -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
127 prefix=/usr/local/musl
133 tools=
149 --help|-h) usage ;;
150 --srcdir=*) srcdir=${arg#*=} ;;
151 --prefix=*) prefix=${arg#*=} ;;
152 --exec-prefix=*) exec_prefix=${arg#*=} ;;
153 --bindir=*) bindir=${arg#*=} ;;
154 --libdir=*) libdir=${arg#*=} ;;
155 --includedir=*) includedir=${arg#*=} ;;
156 --syslibdir=*) syslibdir=${arg#*=} ;;
157 --enable-shared|--enable-shared=yes) shared=yes ;;
158 --disable-shared|--enable-shared=no) shared=no ;;
159 --enable-static|--enable-static=yes) static=yes ;;
160 --disable-static|--enable-static=no) static=no ;;
161 --enable-optimize) optimize=yes ;;
162 --enable-optimize=*) optimize=${arg#*=} ;;
163 --disable-optimize) optimize=no ;;
164 --enable-debug|--enable-debug=yes) debug=yes ;;
165 --disable-debug|--enable-debug=no) debug=no ;;
166 --enable-warnings|--enable-warnings=yes) warnings=yes ;;
167 --disable-warnings|--enable-warnings=no) warnings=no ;;
168 --enable-wrapper|--enable-wrapper=yes) wrapper=detect ;;
169 --enable-wrapper=all) wrapper=yes ; gcc_wrapper=yes ; clang_wrapper=yes ;;
170 --enable-wrapper=gcc) wrapper=yes ; gcc_wrapper=yes ;;
171 --enable-wrapper=clang) wrapper=yes ; clang_wrapper=yes ;;
172 --disable-wrapper|--enable-wrapper=no) wrapper=no ;;
173 --enable-gcc-wrapper|--enable-gcc-wrapper=yes) wrapper=yes ; gcc_wrapper=yes ;;
174 --disable-gcc-wrapper|--enable-gcc-wrapper=no) wrapper=no ;;
175 --with-malloc=*) malloc_dir=${arg#*=} ;;
176 --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;;
177 --host=*|--target=*) target=${arg#*=} ;;
178 --build=*) build=${arg#*=} ;;
179 -* ) echo "$0: unknown option $arg" ;;
198 # Get the source dir for out-of-tree builds
200 if test -z "$srcdir" ; then
207 test "$srcdir" != "." && test -f Makefile && test ! -h Makefile && fail "$0: Makefile already exist…
213 set -C
215 tmpc="./conf$$-$PPID-$i.c"
217 test "$i" -gt 50 && fail "$0: cannot create temporary file $tmpc"
225 test -d "$srcdir/src/malloc/$malloc_dir" \
229 # Check whether we are cross-compiling, and set a default
234 test -z "$CROSS_COMPILE" && \
235 CROSS_COMPILE="$target-"
245 test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; }
249 if output=$($CC $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" 2>&1) ; then
259 tryflag CFLAGS_TRY -Werror=unknown-warning-option
260 tryflag CFLAGS_TRY -Werror=unused-command-line-argument
261 tryflag CFLAGS_TRY -Werror=ignored-optimization-argument
262 tryldflag LDFLAGS_TRY -Werror=unknown-warning-option
263 tryldflag LDFLAGS_TRY -Werror=unused-command-line-argument
270 cc_ver="$(LC_ALL=C $CC -v 2>&1)"
288 if test "$wrapper" = auto && ! $CC -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
305 tools="$tools obj/musl-gcc"
306 tool_libs="$tool_libs lib/musl-gcc.specs"
309 tools="$tools obj/musl-clang obj/ld.musl-clang"
316 test -n "$target" || target=$($CC -dumpmachine 2>/dev/null) || target=unknown
323 # Catch these early to simplify matching for 32-bit archs
326 i?86-nt32*) ARCH=nt32 ;;
328 x86_64-x32*|x32*|x86_64*x32) ARCH=x32 ;;
329 x86_64-nt64*) ARCH=nt64 ;;
339 sh[1-9bel-]*|sh|superh*) ARCH=sh ;;
341 unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;;
348 tryflag CFLAGS_C99FSE -std=c99
349 tryflag CFLAGS_C99FSE -nostdinc
350 tryflag CFLAGS_C99FSE -ffreestanding \
351 || tryflag CFLAGS_C99FSE -fno-builtin
352 tryflag CFLAGS_C99FSE -fexcess-precision=standard \
353 || { test "$ARCH" = i386 && tryflag CFLAGS_C99FSE -ffloat-store ; }
354 tryflag CFLAGS_C99FSE -frounding-math
370 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
374 CFLAGS_C99FSE="$CFLAGS_C99FSE -D__may_alias__="
382 tryflag CFLAGS_C99FSE -Wa,--noexecstack
386 # disabled for a few early-bootstrap translation units. If not found,
389 tryflag CFLAGS_NOSSP -fno-stack-protector
393 # generating self-referential versions of memcpy,, memmove, memcmp,
398 tryflag CFLAGS_MEMOPS -fno-tree-loop-distribute-patterns
403 test "$debug" = yes && CFLAGS_AUTO=-g
411 if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" &&
412 test -f "$srcdir/tools/add-cfi.$ARCH.awk" &&
413 …ile.s\"\n.line 1\n.cfi_startproc\n.cfi_endproc" | $CC -g -x assembler -c -o /dev/null 2>/dev/null -
422 # Possibly add a -O option to CFLAGS and select modules to optimize with
423 # -O3 based on the status of --enable-optimize and provided CFLAGS.
428 if fnmatch '-O*|*\ -O*' "$CFLAGS_AUTO $CFLAGS" ; then
439 test "$optimize" = no || tryflag CFLAGS_AUTO -Os || tryflag CFLAGS_AUTO -O2
462 # Always try -pipe
463 tryflag CFLAGS_AUTO -pipe
470 if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" ; then :
472 tryflag CFLAGS_AUTO -fomit-frame-pointer
481 tryflag CFLAGS_AUTO -fno-unwind-tables
482 tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
488 # whereby relative address expressions are constant-folded by the
492 tryflag CFLAGS_AUTO -ffunction-sections
493 tryflag CFLAGS_AUTO -fdata-sections
500 # Some build environments pass -march and -mtune options via CC, so
504 fnmatch '-march=*|*\ -march=*' "$CC $CFLAGS" || tryldflag CFLAGS_AUTO -march=i486
505 fnmatch '-mtune=*|*\ -mtune=*' "$CC $CFLAGS" || tryldflag CFLAGS_AUTO -mtune=generic
509 # GCC defines -w as overriding any -W options, regardless of order, but
510 # clang has a bunch of annoying warnings enabled by default and needs -w
511 # to start from a clean slate. So use -w if building with clang. Also
512 # turn off a common on-by-default cast warning regardless of compiler.
514 test "$cc_family" = clang && tryflag CFLAGS_AUTO -w
516 tryflag CFLAGS_AUTO -Wno-pointer-to-int-cast
519 # Even with -std=c99, gcc accepts some constructs which are constraint
521 # other purely stylistic warnings are enabled -- especially implicit
524 tryflag CFLAGS_AUTO -Werror=implicit-function-declaration
525 tryflag CFLAGS_AUTO -Werror=implicit-int
526 tryflag CFLAGS_AUTO -Werror=pointer-sign
527 tryflag CFLAGS_AUTO -Werror=pointer-arith
528 tryflag CFLAGS_AUTO -Werror=int-conversion
529 tryflag CFLAGS_AUTO -Werror=incompatible-pointer-types
530 tryflag CFLAGS_AUTO -Werror=discarded-qualifiers
531 tryflag CFLAGS_AUTO -Werror=discarded-array-qualifiers
538 test "$cc_family" = clang && tryflag CFLAGS_AUTO -Qunused-arguments
541 tryflag CFLAGS_AUTO -Waddress
542 tryflag CFLAGS_AUTO -Warray-bounds
543 tryflag CFLAGS_AUTO -Wchar-subscripts
544 tryflag CFLAGS_AUTO -Wduplicate-decl-specifier
545 tryflag CFLAGS_AUTO -Winit-self
546 tryflag CFLAGS_AUTO -Wreturn-type
547 tryflag CFLAGS_AUTO -Wsequence-point
548 tryflag CFLAGS_AUTO -Wstrict-aliasing
549 tryflag CFLAGS_AUTO -Wunused-function
550 tryflag CFLAGS_AUTO -Wunused-label
551 tryflag CFLAGS_AUTO -Wunused-variable
554 # Determine if the compiler produces position-independent code (PIC)
566 tryldflag LDFLAGS_AUTO -Wl,--sort-section,alignment
567 tryldflag LDFLAGS_AUTO -Wl,--sort-common
571 tryldflag LDFLAGS_AUTO -Wl,--gc-sections
574 tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
580 tryldflag LDFLAGS_AUTO -Wl,--no-undefined
585 tryldflag LDFLAGS_AUTO -Wl,--exclude-libs=ALL
590 # --dynamic-list rather than -Bsymbolic-functions for greater
592 tryldflag LDFLAGS_AUTO -Wl,--dynamic-list="$srcdir/dynamic.list"
595 test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh
596 test -z "$LIBCC" && tryldflag LIBCC -lcompiler_rt
597 test -z "$LIBCC" && try_libcc=`$CC -print-libgcc-file-name 2>/dev/null` \
599 test -z "$LIBCC" && try_libcc=`$CC -print-file-name=libpcc.a 2>/dev/null` \
612 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -fPIC \
613 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
617 CFLAGS_AUTO="$CFLAGS_AUTO -DBROKEN_EBX_ASM"
627 tryflag CFLAGS_AUTO -mimplicit-it=always
628 tryflag CFLAGS_AUTO -Wa,-mimplicit-it=always
629 tryflag CFLAGS_AUTO -Wa,-mthumb
639 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
643 CFLAGS_AUTO="$CFLAGS_AUTO -DBROKEN_VFP_ASM"
655 elif trycppif "__mcffpu__" ; then SUBARCH="-fp64"
656 else SUBARCH="-sf"
663 trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf
670 trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf
674 trycppif "_SOFT_FLOAT || __NO_FPRS__" "$t" && SUBARCH=${SUBARCH}-sf
677 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
681 CFLAGS_AUTO="$CFLAGS_AUTO -DBROKEN_PPC_D_ASM"
692 trycppif _SOFT_FLOAT "$t" && fail "$0: error: soft-float not supported on powerpc64"
696 trycppif __riscv_float_abi_soft "$t" && SUBARCH=${SUBARCH}-sf
697 trycppif __riscv_float_abi_single "$t" && SUBARCH=${SUBARCH}-sp
701 tryflag CFLAGS_AUTO -Wa,--isa=any
708 echo 'typedef char dblcheck[(int)sizeof(double)-5];' > "$tmpc"
709 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
716 SUBARCH=${SUBARCH}-nofpu
719 SUBARCH=${SUBARCH}-fdpic
742 echo 'typedef char ldcheck[(C(53,8)||C(64,12)||C(64,16)||C(113,16))*2-1];' >> "$tmpc"
744 -I$srcdir/arch/$ARCH -I$srcdir/arch/generic -I$srcdir/include \
745 $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
753 # Some build systems globally pass in broken CFLAGS like -ffast-math
755 # early rather than producing a seriously-broken math library.
773 # Any changes made here will be lost if configure is re-run
774 AR = ${AR:-\$(CROSS_COMPILE)ar}
775 RANLIB = ${RANLIB:-\$(CROSS_COMPILE)ranlib}
798 ALL_TOOLS = $tools
808 exec 1>&3 3>&-
810 test "$srcdir" = "." || ln -sf $srcdir/Makefile .