Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (fauli)" <fauli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libetpan/files: libetpan-1.0-ldflags.patch
Date: Tue, 20 Apr 2010 18:42:03
Message-Id: 20100420184157.D12372C049@corvid.gentoo.org
1 fauli 10/04/20 18:41:57
2
3 Added: libetpan-1.0-ldflags.patch
4 Log:
5 version bump for bug 313097, also fixes respect of LDFLAGS as reported with patch from Kacper Kowalik <xarthisius DOT kk AT gmail DOT com> in bug 310167
6 (Portage version: 2.1.8.3/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 net-libs/libetpan/files/libetpan-1.0-ldflags.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libetpan/files/libetpan-1.0-ldflags.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/libetpan/files/libetpan-1.0-ldflags.patch?rev=1.1&content-type=text/plain
13
14 Index: libetpan-1.0-ldflags.patch
15 ===================================================================
16 --- configure.ac.orig 2010-04-20 20:29:01.136283062 +0200
17 +++ configure.ac 2010-04-20 20:29:45.884283632 +0200
18 @@ -455,11 +455,11 @@
19 for flag in "pthreads" "pthread"; do
20 if test "x$checkpthread" = "xyes"; then
21 AC_MSG_CHECKING([for pthread_create with -$flag])
22 - OLDFLAGS="$LDFLAGS"
23 - LDFLAGS="-$flag $LDFLAGS"
24 - AC_TRY_LINK([], [pthread_create();],
25 + OLDLIBS="$LIBS"
26 + LIBS="$LIBS -l$flag"
27 + AC_TRY_LINK([], [pthread_create();],
28 [pthflag=yes; checkpthread=no],
29 - [pthflag=no; LDFLAGS="$OLDFLAGS"])
30 + [pthflag=no; LIBS="$OLDLIBS"])
31 AC_MSG_RESULT($pthflag)
32 fi
33 done