mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 15:31:06 +08:00
libstdc++, libgfortran gthr workaround for musl
On behalf of szabolcs.nagy@arm.com [libstdc++-v3/] 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com> * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define. * configure.host (os_include_dir): Set to "os/generic" for linux-musl*. [libgfortran/] 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com> * acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*. * configure: Regenerate. From-SVN: r222329
This commit is contained in:
parent
15aa7b4472
commit
85da5c3024
@ -1,3 +1,8 @@
|
||||
2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* acinclude.m4 (GTHREAD_USE_WEAK): Define as 0 for *-*-musl*.
|
||||
* configure: Regenerate.
|
||||
|
||||
2015-04-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libgfortran/65234
|
||||
|
@ -100,7 +100,7 @@ void foo (void);
|
||||
[Define to 1 if the target supports #pragma weak])
|
||||
fi
|
||||
case "$host" in
|
||||
*-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
|
||||
*-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
|
||||
AC_DEFINE(GTHREAD_USE_WEAK, 0,
|
||||
[Define to 0 if the target shouldn't use #pragma weak])
|
||||
;;
|
||||
|
2
libgfortran/configure
vendored
2
libgfortran/configure
vendored
@ -26447,7 +26447,7 @@ $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
case "$host" in
|
||||
*-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
|
||||
*-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
|
||||
|
||||
$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
||||
|
||||
* config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
|
||||
* configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
|
||||
|
||||
2015-04-22 Renlin Li <renlin.li@arm.com>
|
||||
|
||||
* testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
|
||||
|
@ -33,4 +33,9 @@
|
||||
// System-specific #define, typedefs, corrections, etc, go here. This
|
||||
// file will come before all others.
|
||||
|
||||
// Disable the weak reference logic in gthr.h for os/generic because it
|
||||
// is broken on every platform unless there is implementation specific
|
||||
// workaround in gthr-posix.h and at link-time for static linking.
|
||||
#define _GLIBCXX_GTHREAD_USE_WEAK 0
|
||||
|
||||
#endif
|
||||
|
@ -271,6 +271,9 @@ case "${host_os}" in
|
||||
freebsd*)
|
||||
os_include_dir="os/bsd/freebsd"
|
||||
;;
|
||||
linux-musl*)
|
||||
os_include_dir="os/generic"
|
||||
;;
|
||||
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
|
||||
if [ "$uclibc" = "yes" ]; then
|
||||
os_include_dir="os/uclibc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user