[PATCH 2/13] musl libc config

Jeff Law law@redhat.com
Wed Apr 22 13:16:00 GMT 2015


On 04/20/2015 12:52 PM, Szabolcs Nagy wrote:
> Add musl libc support to gcc and the command line option -mmusl following other
> libc support code.
>
> Note that -m<libc> cannot be entirely correct: there are build time decisions
> based on the default libc.
>
> gcc/Changelog:
>
> 2015-04-16  Gregor Richards  <gregor.richards@uwaterloo.ca>
>
> 	* config.gcc (LIBC_MUSL): New tm_defines macro.
> 	* config/linux.h (OPTION_MUSL): Define.
> 	(INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
> 	(INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
> 	(INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
>
> 	* config/linux.opt (mmusl): New option.
> 	* gcc/configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
> 	(gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
>
> 	* gcc/configure: Regenerate.
OK for the trunk.  Please install.

jeff



More information about the Gcc-patches mailing list