aboutsummaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)Author
2019-09-20ASAN=1 implies NOSTRIP=1, and don't say strip failed for NOSTRIP.Rob Landley
2019-08-27Add ASAN=1 to the build, in a slightly different way than Elliott suggested.Rob Landley
I put it in configure, with the other environment variables, instead of in scripts/make.sh. Here's Elliott's original commit comment: ========== Just use `ASAN=1 make test_grep` or whatever. You'll probably want to set $ASAN_SYMBOLIZER_PATH to point to llvm-symbolizer, but Debian makes that annoying by calling the symbolizer /usr/bin/llvm-symbolizer-4.0 or whatever, and ASan refuses to use it: ==43370==ERROR: External symbolizer path is set to '/usr/bin/llvm-symbolizer-4.0' which isn't a known symbolizer. Please set the path to the llvm-symbolizer binary or other known tool. My usual workaround for this is to drop an llvm-symbolizer symlink in the current directory, and I'm happy to automate that in the script to make it require no knowledge of any of this nonsense, but haven't done so in this initial patch. I tested that this is actually working by reverting the grep fix and running `ASAN=1 make test_grep`.
2018-11-30macOS: Apple's ancient linker doesn't have --as-needed or --gc-sections.Elliott Hughes
2018-08-03configure: fix typoFrancesco Valla
2018-06-03call strip as $STRIPFrancesco Valla
This is useful e.g. for cross toolchains that define $CC and $STRIP instead of $CROSS_COMPILE.
2018-02-04People keep running ./configure, so have it do a defconfig for them.Rob Landley
2017-01-04Implicit function declarations are an error, not a warning.Rob Landley
(The switch to 64 bits screwed up varargs: everything used to be promoted to 32 bits, but now it's 32 bits or 64 bits depending on type declarations, so you need the type declarations. Because promoting "char" arguments to 32 bits back when a megabyte was a lot of memory was ok, but promoting everything to 64 bits now that you can get 2 gigabytes of ram in a phone is unacceptable.)
2016-02-10Wean scripts/install.c off toys.h so cross compiling less brittle.Rob Landley
2015-11-02Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endianRob Landley
seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs around problematic (smack) includes from toys.h.
2015-10-05Fix allnoconfig. (Exporting HOSTCC before HOSTCC?=cc caused a problem.)Rob Landley
2015-09-17Fix a couple things gcc is too dumb to figure out on its own.Rob Landley
2015-05-09Probe for -Wno-string-plus-int.Rob Landley
LLVM has its own nuts warnings about things that aren't wrong, but disabling them with the relevant -Wno-* warning disabling command line option drives gcc nuts because it's a command line option it doesn't recognize. (gcc 4.2.1 dies with an error. gcc 4.6 warns about it _only_ if it's warning about something else. (PICK ONE, either you warn about this or you don't, distract people from actual problems with noise about something clearly unrelated to what just changed is extra-stupid.) So just probe for it, and add the flag only if it doesn't complain about it while we're producing an unrelated warning.
2015-03-27Flag to make llvm shut up about a broken warning.Rob Landley
2015-03-06Yank $STRIP from config (and STRIP=no weirdness) and just allow strip to fail.Rob Landley
2015-02-28Add LDFLAGS and STRIP=no support.Rob Landley
2014-08-30Old compilers complain about linker options passed with -c, so split out ↵Rob Landley
$LDOPTIMIZE.
2013-08-13Add a new optimization flag at the suggestion of the musl guys telling gcc ↵Rob Landley
not to produce a large unused dwarf table for C++ style stack unwinding.
2013-01-13Revert some debug code accidentally checked in at commit 715.Rob Landley
2012-11-23Add expand command as described in POSIX-2008.Jonathan Clairembault
Erratum: Do not handle backspace.
2012-06-18Replace CCFLAGS with description of how to add flags to HOSTCC.Rob Landley
2012-03-03Fix from Georgi Chorbadzhiyski to make cross compiling more robust.0.2.1Rob Landley
2009-08-06Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set.Rob Landley
2008-01-19Zap toys/Config.in and instead create generated/Config.in from contents ofRob Landley
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)