>Number:         2736
>Category:       config
>Synopsis:       Compiling apache in o32 under irix64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Wed Jul 29 08:20:00 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3.1
>Environment:
IRIX64 pollux 6.4 02121744 IP27
>Description:
The Configure script in the src directory insists on setting the -n32 flag even
if the IRIXN32 feature is disabled.

We are starting to deploy irix 6.5 and we want to use an IRIX64 platform 
to build software for the older architecture.
>How-To-Repeat:
Try "configure --disable-rule=IRIXN32" and then make. The -n32 flag is still 
there.
>Fix:
Use the SGI_ABI environment variable if it is set. Here are the diffs:

*** Configure.orig      Wed Jul 29 10:54:04 1998
--- Configure   Tue Jul 28 14:52:19 1998
***************
*** 867,873 ****
              LDFLAGS_SHLIB="-assert pure-text"
              LDFLAGS_SHLIB_EXPORT=""
              ;;
!         *-sgi-irix32)
              case $CC in
                  */gcc|gcc )
                    CFLAGS_SHLIB="-fpic"
--- 867,873 ----
              LDFLAGS_SHLIB="-assert pure-text"
              LDFLAGS_SHLIB_EXPORT=""
              ;;
!         *-sgi-irix32|*-sgi-irix64)
              case $CC in
                  */gcc|gcc )
                    CFLAGS_SHLIB="-fpic"
***************
*** 1113,1120 ****
      *IRIX-64*)
        case "$CC" in
            */cc|cc )
!               CFLAGS="$CFLAGS -n32"
!               LDFLAGS="$LDFLAGS -n32"
            ;;
        esac
        ;;
--- 1113,1120 ----
      *IRIX-64*)
        case "$CC" in
            */cc|cc )
!               CFLAGS="$CFLAGS ${SGI_ABI:--n32}"
!               LDFLAGS="$LDFLAGS ${SGI_ABI:--n32}"
            ;;
        esac
        ;;
***************
*** 1121,1128 ****
      *IRIX-32*)
        case "$CC" in
            */cc|cc )
!               CFLAGS="$CFLAGS -n32"
!               LDFLAGS="$LDFLAGS -n32"
            ;;
        esac
        ;;
--- 1121,1128 ----
      *IRIX-32*)
        case "$CC" in
            */cc|cc )
!               CFLAGS="$CFLAGS ${SGI_ABI:--n32}"
!               LDFLAGS="$LDFLAGS ${SGI_ABI:--n32}"
            ;;
        esac
        ;;
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to