#!/bin/sh # toolchain.conf # Simple configuration options for building a toolchain # Where can I find the Slackware source tree? SLACKWAREROOT=$(pwd) # Where to you want me to put the finished toolchain? # (Binary RPATHs are set here, so moving it will require # tricky LD_LIBRARY_PATH work.) # OUTPUT=/usr/local/ (for root) # OUTPUT=~/ (for regular users) # What is the target architecture? # The compiler will generate these types of objects by default. # This will also dictate the type of executables in # the sysroot's [s]bin directories. ARCH=sparc64 # Enable multilib (if available)? # This builds a compiler capable of generating both # 32-bit and 64-bit object files. # MULTILIB=yes # Run 'make check'? (Very slow when building math libraries) # CHECK=n # Toolchain script debugging DEBUG=y ########## # CAUTION: # # These next few options dictate whether either # a) the toolchain itself, and # b) the toolchain's output # is able to execute on older machines. # These options set the defaults for GCC invocation. # Some are not available on certain architectures. # Check your GCC manual for more information. # --with-float= # --with-cpu= # --with-arch= # --with-schedule= # --with-tune= # --with-abi # --with-fpu= # # SPARCv7: # GCCAUTOTUNE="--with-cpu=v7 --with-tune=cypress" # SPARCv8: # GCCAUTOTUNE="--with-cpu=v8 --with-tune=supersparc" # UltraSPARC I/II: # GCCAUTOTUNE="--with-cpu=v9 --with-tune=ultrasparc" # UltraSPARC III: # GCCAUTOTUNE="--with-cpu=v9 --with-tune=ultrasparc3" # UltraSPARC T1 ("Niagara"): # GCCAUTOTUNE="--with-cpu=v9 --with-tune=niagara" # # GCCAUTOTUNE="" # Your tools will be created with these optimizations. # CFLAGS="-O3 -pipe" # LDFLAGS="-Wl,-O1 -Wl,--as-needed" # Your tools will cross-compile the initial C library and # other support libraries with these optimizations. # CFLAGS_FOR_TARGET="-O3 -pipe" # LDFLAGS_FOR_TARGET="-Wl,-O1 -Wl,--as-needed" # If your host/target architecture is not MIPS or MIPS64, then # "-Wl,--hash-style=gnu" will also be added to LDFLAGS.