aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxml2/libxml2-pthread.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:13:22 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:25 +0000
commit488443722c56299f15c69a64e1e8554e0bc55535 (patch)
tree8a15af93cc35da7a128aef609b1934bf25a38440 /main/libxml2/libxml2-pthread.patch
parenta433482bbea7dcceaf8cbe9ddcad1db8c9b254ff (diff)
downloadaports-488443722c56299f15c69a64e1e8554e0bc55535.tar.bz2
aports-488443722c56299f15c69a64e1e8554e0bc55535.tar.xz
main/libxml2: fix build against musl
they have horrible hack to make pthread symbols weak, it's unneeded. patch from sabotage.
Diffstat (limited to 'main/libxml2/libxml2-pthread.patch')
-rw-r--r--main/libxml2/libxml2-pthread.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/main/libxml2/libxml2-pthread.patch b/main/libxml2/libxml2-pthread.patch
new file mode 100644
index 0000000000..d6e6f466ac
--- /dev/null
+++ b/main/libxml2/libxml2-pthread.patch
@@ -0,0 +1,53 @@
+--- libxml2-2.9.1.patched/threads.c 2013-07-24 03:30:55.160000003 +0000
++++ libxml2-2.9.1/threads.c 2013-07-24 03:33:50.323000003 +0000
+@@ -47,49 +47,7 @@
+ #ifdef HAVE_PTHREAD_H
+
+ static int libxml_is_threaded = -1;
+-#ifdef __GNUC__
+-#ifdef linux
+-#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
+-extern int pthread_once (pthread_once_t *__once_control,
+- void (*__init_routine) (void))
+- __attribute((weak));
+-extern void *pthread_getspecific (pthread_key_t __key)
+- __attribute((weak));
+-extern int pthread_setspecific (pthread_key_t __key,
+- __const void *__pointer)
+- __attribute((weak));
+-extern int pthread_key_create (pthread_key_t *__key,
+- void (*__destr_function) (void *))
+- __attribute((weak));
+-extern int pthread_key_delete (pthread_key_t __key)
+- __attribute((weak));
+-extern int pthread_mutex_init ()
+- __attribute((weak));
+-extern int pthread_mutex_destroy ()
+- __attribute((weak));
+-extern int pthread_mutex_lock ()
+- __attribute((weak));
+-extern int pthread_mutex_unlock ()
+- __attribute((weak));
+-extern int pthread_cond_init ()
+- __attribute((weak));
+-extern int pthread_cond_destroy ()
+- __attribute((weak));
+-extern int pthread_cond_wait ()
+- __attribute((weak));
+-extern int pthread_equal ()
+- __attribute((weak));
+-extern pthread_t pthread_self ()
+- __attribute((weak));
+-extern int pthread_key_create ()
+- __attribute((weak));
+-extern int pthread_key_delete ()
+- __attribute((weak));
+-extern int pthread_cond_signal ()
+- __attribute((weak));
+-#endif
+-#endif /* linux */
+-#endif /* __GNUC__ */
++
+ #endif /* HAVE_PTHREAD_H */
+
+ /*