The PTHREADS support detection is broken
[email protected] (Jonas Smedegaard)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, The detection of PTHREADS support is broken. See http://bugs.debian.org/268280 for more info. The attached patch (together with the libtools cleanup suggested in an earlier post) should fix this issue. I believe this to be safe to apply for 2.0.34. Kind regards, - Jonas - -- * Jonas Smedegaard - idealist og Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ - Enden er nær: http://www.shibumi.org/eoti.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFmWU0n7DbMsAkQLgRApakAJ4+XgUR+WMR0QVMDKaXUZr9DTk1XgCfQbZl +ocduSUOpinumtdblyMHKg8= =cUQg -----END PGP SIGNATURE-----
1001_correctly_apply_PTHREAD_LIBS.patch
(text/x-patch, 759 B)
--- libgd2-2.0.28.old/configure.ac 2004-07-21 20:55:32.000000000 +0200
+++ libgd2-2.0.28/configure.ac 2004-08-27 00:31:05.000000000 +0200
@@ -93,12 +93,15 @@
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
AC_MSG_RESULT($acx_pthread_ok)
+ LIBS="$save_LIBS"
+ CFLAGS="$save_CFLAGS"
if test x"$acx_pthread_ok" = xno; then
PTHREAD_LIBS=""
PTHREAD_CFLAGS=""
+ else
+ LIBS="$PTHREAD_LIBS $LIBS"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
fi
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
fi
# We must check for the threads library under a number of different