ports/devel/gettext/patches/patch-gettext-tools_gnulib-lib_asyncsafe-spin_c

15 lines
672 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
- fix undefined reference to `__sync_val_compare_and_swap_4' on hppa
Index: gettext-tools/gnulib-lib/asyncsafe-spin.c
--- gettext-tools/gnulib-lib/asyncsafe-spin.c.orig
+++ gettext-tools/gnulib-lib/asyncsafe-spin.c
2023-09-14 00:49:35 +00:00
@@ -136,7 +136,7 @@ do_unlock (asyncsafe_spinlock_t *lock)
2023-08-16 22:26:55 +00:00
# elif (((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) \
2023-09-14 00:49:35 +00:00
&& !(defined __sun && defined __sparc__) && !defined __ANDROID__) \
2023-08-16 22:26:55 +00:00
|| __clang_major__ >= 3) \
- && !defined __ibmxl__
+ && !defined __ibmxl__ && !defined(__hppa__)
2023-09-14 00:49:35 +00:00
/* Use GCC built-ins (available in GCC >= 4.1, except on Solaris/SPARC and
Android, and clang >= 3.0).
2023-08-16 22:26:55 +00:00
Documentation: