www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Rosema <ros...@reason.jpl.nasa.gov>
Subject config/1690: configure generates incorrect optimization flag
Date Sat, 17 Jan 1998 01:36:35 GMT

>Number:         1690
>Category:       config
>Synopsis:       configure generates incorrect optimization flag
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jan 16 17:40:00 PST 1998
>Originator:     rosema@reason.jpl.nasa.gov
>Release:        1.2.4
SunOS reason 5.5.1 Generic sun4u sparc SUNW,Ultra-1
Solaris 2.5.1 OS
SunWorks SUNWspro C compiler version 4.2
Using Sun's 4.2 CC compiler, Configure generates
an optimization flag of -o2.  This generates an 
warning message during compiling like:
WARNING:  option -2 passed to ld

The Sun compiler wants -xO2 or -xO (both are
run Configure and make using Sun's cc compiler

The fix is to change the OPTIM variable in the
Makefile to 
for the case of using Sun's cc
The Sun C preprocessor defines __SUNPRO_C=0x420
for detecting these compilers.
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message