diff options
author | Gregor Richards <gregor.richards@uwaterloo.ca> | 2015-04-22 14:16:41 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2015-04-22 14:16:41 +0000 |
commit | 513686a6a7780225692162d9d5ae31c618c503e1 (patch) | |
tree | 7dc2b7d7f0eaecfa789b2f5b8f781e385c6dca7d /gcc/configure | |
parent | 96ce40cbce449cb5f434425d148a9bcf02270c96 (diff) | |
download | gcc-513686a6a7780225692162d9d5ae31c618c503e1.zip gcc-513686a6a7780225692162d9d5ae31c618c503e1.tar.gz gcc-513686a6a7780225692162d9d5ae31c618c503e1.tar.bz2 |
config changes for musl libc support
On behalf of Szabolcs.Nagy@arm.com
2015-04-22 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.
* configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
(gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
* configure: Regenerate.
From-SVN: r222326
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 9523773..5345f69 100755 --- a/gcc/configure +++ b/gcc/configure @@ -27678,6 +27678,9 @@ if test "${gcc_cv_libc_provides_ssp+set}" = set; then : else gcc_cv_libc_provides_ssp=no case "$target" in + *-*-musl*) + # All versions of musl provide stack protector + gcc_cv_libc_provides_ssp=yes;; *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu) # glibc 2.4 and later provides __stack_chk_fail and # either __stack_chk_guard, or TLS access to stack guard canary. @@ -27710,6 +27713,7 @@ fi # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now # simply assert that glibc does provide this, which is true for all # realistically usable GNU/Hurd configurations. + # All supported versions of musl provide it as well gcc_cv_libc_provides_ssp=yes;; *-*-darwin* | *-*-freebsd*) ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail" @@ -27806,6 +27810,9 @@ case "$target" in gcc_cv_target_dl_iterate_phdr=no fi ;; + *-linux-musl*) + gcc_cv_target_dl_iterate_phdr=yes + ;; esac if test x$gcc_cv_target_dl_iterate_phdr = xyes; then |