Commit Graph

12 Commits

Author SHA1 Message Date
Rich Felker 6e0ad2277a make gcc wrapper rewrite link options rather than just extending them
this is not tested yet, but should work to get rid of unwanted
--hash-style=gnu hacks present in some distro-patched gcc versions.
2012-06-06 15:48:06 -04:00
Rich Felker ed6717277c fix musl-gcc wrapper to work with -pie
linking the wrong crt1.o resulted in textrels and thus crashing
2012-05-30 21:19:32 -04:00
Rich Felker 58f430c1e0 new gcc wrapper, entirely specfile based
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.
2012-04-22 14:32:49 -04:00
Rich Felker 61c2cf877b remove -std=gnu99 from musl-gcc wrapper
while probably desirable, changing the default language variant is
outside the scope of the wrapper's responsibility.
2012-02-17 23:51:23 -05:00
Rich Felker 4f4d6ae985 improve gcc wrapper to support -nostdlib, -nostartfiles 2012-02-02 23:54:46 -05:00
Rich Felker b768c7bc63 make gcc wrapper support -shared correctly
it was previously attempting to link start files as part of shared
objects. this is definitely wrong and depending on the platform and
linker could range from just adding extraneous junk to introducing
textrels to making linking fail entirely.
2012-01-24 00:22:27 -05:00
Rich Felker d30c331d1f new gcc wrapper now supports pre-4.4 gcc versions and is more robust 2011-09-21 19:40:55 -04:00
Rich Felker 207c45d7ab cleanup shared library build system to be more $HOME-local-install friendly
the path for the dynamic linker is now configurable, and failure to
install the symlink for it will not stop the build.
2011-06-27 21:38:11 -04:00
Rich Felker 1a3ff4f909 fix dynamic linker issue in musl-gcc wrapper 2011-06-25 18:57:17 -04:00
Rich Felker ec05a0b08f adapt build/install/gcc-wrapper systems for dynamic linking support 2011-06-23 22:13:47 -04:00
Rich Felker 71df8b2760 use -L/...../ -lgcc instead of /...../libgcc.a in musl-gcc wrapper
this should avoid warnings about unused libs when not linking, and
might fix some other obscure issues too. i might replace this approach
with a completely different one soon though.
2011-03-01 12:04:36 -05:00
Rich Felker 0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00