#48782 [Opn->Csd]: configure kills CFLAGS passed to it

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               48782
 Updated by:       [email protected]
 Reported By:      dmda at yandex dot ru
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: solaris 8/sparc
 PHP Version:      5.3.0
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2009-07-02 23:56:46] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48782&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.