summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2012-07-11initial version of mips (o32) port, based on work by Richard Pennington (rdp)Rich Felker1-0/+1
basically, this version of the code was obtained by starting with rdp's work from his ellcc source tree, adapting it to musl's build system and coding style, auditing the bits headers for discrepencies with kernel definitions or glibc/LSB ABI or large file issues, fixing up incompatibility with the old binutils from aboriginal linux, and adding some new special cases to deal with the oddities of sigaction and pipe syscall interfaces on mips. at present, minimal test programs work, but some interfaces are broken or missing. threaded programs probably will not link.
2012-07-03configure: only use -ffloat-store on i386Rich Felker1-1/+1
this option is expensive and only used on old gcc's that lack -fexcess-precision=standed, but it's not needed on non-i386 archs where floating point does not have excess precision anyway. if musl ever supports m68k, i think it will need to be special-cased too. i'm not aware of any other archs with excess precision.
2012-06-07check for ld support of -Bsymbolic-functions; disable shared if not availRich Felker1-0/+7
this issue affects the last gpl2 version of binutils, which some people are still using out of aversion to gpl3. musl requires -Bsymbolic-functions because it's the only way to make a libc.so that's able to operate prior to dynamic linking but that still behaves correctly with respect to global vars that may be moved to the main program via copy relocations.
2012-06-07use -nostdlib in linker tests to avoid possible missing crt/lib issuesRich Felker1-1/+1
2012-06-07avoid linking main program in linker testsRich Felker1-2/+2
it's possible that the user has provided a compiler that does not have any libc to link to, so linking a main program is a bad idea. instead, generate an empty shared library with no dependencies.
2012-06-06make configure try to disable stack protectorRich Felker1-0/+2
in theory we could support stack protector in the libc itself, and users wanting to experiment with such usage could add -fstack-protector to CFLAGS intentionally. but to avoid breakage in the default case, override broken distro-patched gcc that forces stack protector on.
2012-06-06add configure check for gnu linker hash style settingRich Felker1-1/+20
some broken distro-provided toolchains have modified gcc to produce only "gnu hash" dynamic hash table by default. as this is unsupported by musl, that results in a non-working libc.so. we detect and switch this on in configure rather than hard-coding it in the Makefile because it's not supported by old binutils versions, but that might not even be relevant since old binutils versions already fail from -Bsymbolic-functions being missing. at some point I may review whether this should just go in the Makefile...
2012-06-03fix configure build/host/target terminology usageRich Felker1-13/+14
2012-05-14yet another try to get the check for gcc right...Rich Felker1-1/+1
2012-05-14fix error in last configure change (lack of escaping)Rich Felker1-1/+1
2012-05-13correct the check for gcc (previous version failed for cross compilers)Rich Felker1-1/+1
2012-05-05add -frounding-math to buildRich Felker1-0/+1
2012-05-04initial commit of configure scriptRich Felker1-0/+275
this script is not based on autoconf; however it attempts to follow the same interface contracts for ease of integration with build systems. it is also not necessary to use musl. manually written config.mak files are still supported, as is building without any config.mak at all as long as you are happy with the default options and you supply at least ARCH on the command line to make.