From nobody  Fri Jun  5 22:51:19 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id WAA26503;
          Fri, 5 Jun 1998 22:51:19 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199806060551.WAA26503@hub.freebsd.org>
Date: Fri, 5 Jun 1998 22:51:19 -0700 (PDT)
From: sepotvin@videotron.ca
To: freebsd-gnats-submit@freebsd.org
Subject: Wrong csu lib built when setting BINFORMAT=elf
X-Send-Pr-Version: www-1.0

>Number:         6872
>Category:       conf
>Synopsis:       Wrong csu lib built when setting BINFORMAT=elf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun  5 23:00:01 PDT 1998
>Closed-Date:    Thu Sep 10 12:29:03 PDT 1998
>Last-Modified:  Thu Sep 10 12:29:43 PDT 1998
>Originator:     Stephane E. Potvin
>Release:        FreeBSD 3.0-CURRENT
>Organization:
IBM Canada Ltd.
>Environment:
FreeBSD azimov.videotron.ca 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Fri Jun  5 05:28:00 EDT 1998     rubik@azimov.videotron.ca:/usr/local/src/sys/compile/AZIMOV  i386
>Description:
When BINFORMAT=elf is set the old i386 csu lib is built instead of
i386-elf
>How-To-Repeat:
Just do a make buildworld with BINFORMAT=elf set.
>Fix:
*** Makefile.orig       Sat Jun  6 00:53:02 1998
--- Makefile    Sat Jun  6 01:46:18 1998
***************
*** 649,658 ****
  # Some libraries are built conditionally and/or are in inconsistently
  # named directories:
  #
! .if exists(lib/csu/${MACHINE}.pcc)
! _csu=lib/csu/${MACHINE}.pcc
! .else
! _csu=lib/csu/${MACHINE}
  .endif

  # Build the "default" libcrypt first since it sets symlinks for static
--- 649,658 ----
  # Some libraries are built conditionally and/or are in inconsistently
  # named directories:
  #
! .if exists(lib/csu/${MACHINE_ARCH}-${BINFORMAT})
! _csu=lib/csu/${MACHINE_ARCH}-${BINFORMAT}
! .elif exists(lib/csu/${MACHINE_ARCH})
! _csu=lib/csu/${MACHINE_ARCH}
  .endif

  # Build the "default" libcrypt first since it sets symlinks for static

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dt 
State-Changed-When: Thu Sep 10 12:29:03 PDT 1998 
State-Changed-Why:  
This has been fixed recently. 
>Unformatted:
