Bug 5929 - Requires egcs to build
Summary: Requires egcs to build
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gated
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-10-13 23:36 UTC by andrewem
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-02-17 11:39:33 UTC


Attachments (Terms of Use)

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 \
    make
  fi

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 ; \
  fi

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


Note You need to log in before you can comment on or make changes to this bug.