Bug 5929

Summary: Requires egcs to build
Product: [Retired] Red Hat Linux Reporter: andrewem
Component: gatedAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-17 11:39:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description andrewem 1999-10-13 23:36:54 UTC
I understand that egcs produced better code than gcc for x86
at one time, but this was never true for all architectures
(example: gcc and egcs for ARM were always identical).
Since egcs has been merged back into gcc, more and more of
these special cased spec files are gonna be causing
headaches in the future as well.

If egcs is on a system, it is very likely the only compiler
on the system, and already owns the cc (and gcc) symlink.

At the very least, the following would do the same in a much
more portable manner:

  if [ -e `type egcs` ] ; then \
    make CC=egcs ; \
  else \

This will work even if egcs is a symlink (to gcc).

Comment 1 andrewem 1999-10-13 23:40:59 UTC
Uggh...that should have been

  if [ -e `type -p egcs` ] ; then \
    make CC=egcs ; \
  else \
    make ; \

Comment 2 Bernhard Rosenkraenzer 2000-02-17 11:39:59 UTC
Fixed in 3.5.11-1