Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 5929 - Requires egcs to build
Summary: Requires egcs to build
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gated
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
Depends On:
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:
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 \

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

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