php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48782 configure kills CFLAGS passed to it
Submitted: 2009-07-02 23:56 UTC Modified: 2009-07-03 08:00 UTC
From: dmda at yandex dot ru Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.3.0 OS: solaris 8/sparc
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dmda at yandex dot ru
New email:
PHP Version: OS:

 

 [2009-07-02 23:56 UTC] dmda at yandex dot ru
Description:
------------
see configure line 3468
it's where configure cleans up CFLAGS and does never restore it.
So, if you want to pass for example -m64 to compile 64bit binaries, it will fail.

I believe this code

case $host_cpu in
  alpha*)
    if test "$GCC" = "yes"; then
      CFLAGS="$CFLAGS -mieee"
    else
      CFLAGS="$CFLAGS -ieee"
    fi
    ;;
  sparc*)
    if test "$SUNCC" = "yes"; then
      CFLAGS="$CFLAGS -xmemalign=8i"
    else
      CFLAGS=""
    fi
    ;;
esac

should be changed to 

case $host_cpu in
  alpha*)
    if test "$GCC" = "yes"; then
      CFLAGS="$CFLAGS -mieee"
    else
      CFLAGS="$CFLAGS -ieee"
    fi
    ;;
  sparc*)
    if test "$SUNCC" = "yes"; then
      CFLAGS="$CFLAGS -xmemalign=8i"
    fi
    ;;
esac


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-03 08:00 UTC] jani@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 23:00:03 2025 UTC