about summary refs log tree commit diff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* reorganize Makefile to support "least surprise" config/make semanticsRich Felker2012-05-011-11/+23
| | | | | | | | | | | the major change here is that CFLAGS is now a variable that can be changed entirely under user control, without causing essential flags to be lost. previously, "CFLAGS += ..." was valid in config.mak, but using "CFLAGS = ..." in config.mak would have badly broken the build process unless the user took care to copy the necessary flags out of the main Makefile. I have also added a distclean target that removes config.mak.
* remove objcopy --weaken from the makefileRich Felker2012-05-011-2/+0
| | | | | | | | as far as I can tell, it's not useful and never way. I wrote it way back under the assumption that non-weak symbols in the POSIX or extension namespace could conflict with legitimate uses of the same symbol name in the main program or other libraries, but that does not seem to be the case.
* new gcc wrapper, entirely specfile basedRich Felker2012-04-221-3/+7
| | | | | | | | | | | | | the _concept_ of this wrapper has been tested extensively, but the integration with the build/install system, and using a persistent specfile rather than one generated at build-time, have not been heavily tested and may need minor tweaks. this approach should be a lot more robust (and easier to improve) than writing a shell script that's responsible for trying to mimic gcc's logic about whether it's compiling or linking, building shared libs or executable files, etc. it's also lighter weight and should result in mildly faster builds when using the wrapper.
* don't fail on inability to install dynamic linker (e.g. if not root)Rich Felker2012-03-171-1/+1
|
* search internal headers firstRich Felker2012-03-011-1/+1
| | | | this is necessitated by the ugly <syscall.h> just added
* two fixes for "make install" handling of shared libsRich Felker2012-02-171-1/+2
| | | | | | | | 1. don't try to install (and thus build) shared libs when they were disabled in config.mak 2. ensure that the path for the dynamic linker exists before attempting to install it.
* fix a few bugs from last dynamic linking build system commitRich Felker2011-06-281-2/+2
| | | | some cruft was left and DESTDIR was not being used correctly.
* cleanup shared library build system to be more $HOME-local-install friendlyRich Felker2011-06-271-13/+15
| | | | | the path for the dynamic linker is now configurable, and failure to install the symlink for it will not stop the build.
* use soname in ld-musl.so to prevent filename appearing in DT_NEEDEDsRich Felker2011-06-241-1/+1
|
* use symlink rather than bogus linker script for libc.soRich Felker2011-06-241-2/+2
| | | | the linker script caused a bogus DT_NEEDED entry
* adapt build/install/gcc-wrapper systems for dynamic linking supportRich Felker2011-06-231-5/+15
|
* various changes in preparation for dynamic linking supportRich Felker2011-02-241-3/+3
| | | | | | | | | | | | | | | | | prefer using visibility=hidden for __libc internal data, rather than an accessor function, if the compiler has visibility. optimize with -O3 for PIC targets (shared library). without heavy inlining, reloading the GOT register in small functions kills performance. 20-30% size increase for a single libc.so is not a big deal, compared to comparaible size increase in every static binaries. use -Bsymbolic-functions, not -Bsymbolic. global variables are subject to COPY relocations, and thus binding their addresses in the library at link time will cause library functions to read the wrong (original) copies instead of the copies made in the main program's bss section. add entry point, _start, for dynamic linker.
* avoid deleting the lib/empty fileRich Felker2011-02-171-1/+1
|
* new solution for empty lib dir (old one had some problems)Rich Felker2011-02-171-7/+5
|
* improve Makefile handling of git checkouts with missing lib/ and config.makRich Felker2011-02-171-4/+8
|
* finish unifying thread register handling in preparation for portingRich Felker2011-02-151-1/+1
|
* preparing build system to handle ports - step 1Rich Felker2011-02-151-0/+6
|
* ensure that musl is compiled as C99 code & XSI option is available in headersRich Felker2011-02-131-1/+1
|
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-121-0/+97