aboutsummaryrefslogtreecommitdiffstats
path: root/fix-libtool-ltmain-from-overlinking
blob: b6b97e3ea58fb9fe963fc7394f24e5d41a4b483e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

if [ -e ltmain.sh ]; then
   echo "Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking)"

   # a similar patch has been applied in ltmain.sh in libtool package
   # but this works even if autoreconf is not called

   mv ltmain.sh ltmain.sh.orig
   echo link_all_deplibs=no > ltmain.sh
   cat ltmain.sh.orig >> ltmain.sh
   
   sed -i -s 's/link) libs="$deplibs %DEPLIBS% $dependency_libs"/link) libs="$deplibs %DEPLIBS%"/' ltmain.sh
fi
bpthread/pthread_cond_signal.c'>logtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libpthread/pthread_cond_signal.c
blob: 02a3c028e3c2777830771165fba1418bcc270854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <unistd.h>
#include <errno.h>

#include <pthread.h>
#include "thread_internal.h"

int pthread_cond_signal(pthread_cond_t *cond)
{
  _pthread_descr tmp=0;

  __THREAD_INIT();

  __NO_ASYNC_CANCEL_BEGIN;
  __pthread_lock(&(cond->lock));
  if ((tmp=cond->wait_chain)) cond->wait_chain=tmp->waitnext;
  __pthread_unlock(&(cond->lock));
  __NO_ASYNC_CANCEL_STOP;

  if (tmp) {
    tmp->waitnext=0;
    tmp->waiting=0;
  }

  return 0;
}