php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57580 Wrong LDFLAGS definition in config.m4
Submitted: 2007-03-19 09:45 UTC Modified: 2007-05-02 23:46 UTC
From: chtekk at gentoo dot org Assigned:
Status: Closed Package: mcve (PECL)
PHP Version: 5.2.1 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 - 7 = ?
Subscribe to this entry?

 
 [2007-03-19 09:45 UTC] chtekk at gentoo dot org
Description:
------------
During some experiments, where I tweaked the LDFLAGS a bit, I noticed problems with the pecl mcve module 5.2.2, but not 5.2.0, it looked like the LDFLAGS defined were just ignored, and the reason is simple, the following patch fixes it:

--- config.m4   2007-03-19 14:10:07.000000000 +0100
+++ config.m4   2007-03-19 14:10:50.000000000 +0100
@@ -166,7 +166,6 @@
     LIBM_CFLAGS="$LIBM_CFLAGS -I$krb5headers"
   fi
   CFLAGS="$CFLAGS $LIBM_CFLAGS"
-  LDFLAGS="$CFLAGS $LIBM_LDFLAGS"
 
   PHP_NEW_EXTENSION(mcve, mcve.c, $ext_shared)
   PHP_SUBST(MCVE_SHARED_LIBADD)

I can't really understand why you redefine LDFLAGS, since LIBM_LDFLAGS is anyway never defined, and doing it using CFLAGS is incorrect, if you really want to redefine LDFLAGS it should be LDFLAGS="$LDFLAGS $LIBM_LDFLAGS", but since LIBM_LDFLAGS is never defined, I think you can completely omit that part, you probably only really want to intervene on CFLAGS.
Best regards, CHTEKK.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-02 23:46 UTC] edin at krug dot dk
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

LIBM_LDFLAGS is indeed not used, but I just fixed the type in case it gets used.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 09:01:28 2024 UTC