LibGD should not link against libX11
[email protected] (Jonas Smedegaard)
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, It seems there is no need for libGD to link against libX11. Please read http://bugs.debian.org/314376 for more info (main point is found by searching for "idiot" - and please ignore the last part, that was a different bug). The attached patch seems to fix this issue. I believe this should be safe to apply for the upcoming 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 iD8DBQFFmWM3n7DbMsAkQLgRAhtAAKCb8jYC988IggXkV7KyZyCpKKRY8wCfed/F 5Q3tEAeez56s/lkUc79/+5U= =r7SK -----END PGP SIGNATURE-----
1002_check_for_libXPM_but_not_libX11.patch
(text/x-patch, 543 B)
--- libgd2-2.0.33.old/configure.ac 2006-11-24 17:24:30.000000000 +0100
+++ libgd2-2.0.33/configure.ac 2006-11-24 18:21:17.000000000 +0100
@@ -449,10 +449,9 @@
if test "$withval" != no; then
AC_CHECK_LIB(Xpm,XpmReadFileToXpmImage,
- [LIBS="-lXpm -lX11 $LIBS"
+ [LIBS="-lXpm $LIBS"
FEATURES="GD_XPM $FEATURES"
- AC_DEFINE(HAVE_LIBXPM, 1, [ Define if you have the Xpm library. ])],,
- [-lX11])
+ AC_DEFINE(HAVE_LIBXPM, 1, [ Define if you have the Xpm library. ])])
else
ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
fi