>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
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.2.4
>Environment:
SunOS reason 5.5.1 Generic sun4u sparc SUNW,Ultra-1
Solaris 2.5.1 OS
SunWorks SUNWspro C compiler version 4.2
>Description:
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
equivalent)
>How-To-Repeat:
run Configure and make using Sun's cc compiler
>Fix:

The fix is to change the OPTIM variable in the
Makefile to 
OPTIM=-xO2
for the case of using Sun's cc
The Sun C preprocessor defines __SUNPRO_C=0x420
for detecting these compilers.
%0
>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