>Number: 2116 >Category: config >Synopsis: Wrong flags for native compiler on Solaris >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Apr 22 09:20:01 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.2.6 >Environment: uname -a SunOS xxxxx 5.6 Generic_105181-04 sun4u sparc SUNW,Ultra-2 cc -V cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2 >Description: Configure sets optimisation to -O2, but the native compiler doesn't understand it. Although this only causes irritating warnings in .../src, it stops .../support from compiling. >How-To-Repeat: Obvious >Fix: *** Configure.old Wed Apr 22 16:56:23 1998 --- Configure Wed Apr 22 16:56:57 1998 *************** *** 388,393 **** --- 388,396 ---- LIBS="$LIBS -lsocket -lnsl" DBM_LIB="" DEF_WANTHSREGEX=yes + if [ "$COMPILER" = "cc" ]; then + OPTIM=-O + fi ;; *-sunos4*) OS='SunOS 4' %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. ]