Subject: bin/1911: link targets switched in g++ Makefile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thomas@cevis.uni-Bremen.de>
List: netbsd-bugs
Date: 01/08/1996 00:53:34
>Number:         1911
>Category:       bin
>Synopsis:       link targets switched in g++ Makefile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan  7 19:05:01 1996
>Last-Modified:
>Originator:     Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:        NetBSD-current 950107
>Environment:
	
System: NetBSD ed209 1.1A NetBSD 1.1A (ED209) #0: Sun Jan  7 20:48:15 MET 1996     thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386

Machine: i386
>Description:
	The installation target for g++ 2.7.2 installs g++ and then
	links c++ to g++, i.e. it overwrites the just installed file with
	the old one.
>How-To-Repeat:
	cd /usr/src/gnu/usr.bin/gcc/g++
	make install
>Fix:
*** gnu/usr.bin/gcc/gcc2netbsd-	Thu Jan  4 13:11:14 1996
--- gnu/usr.bin/gcc/gcc2netbsd	Sun Jan  7 01:48:54 1996
***************
*** 569,575 ****
  LDADD+=		-lgnumalloc
  DPADD+=		/usr/lib/libgnumalloc.a
  
! LINKS+=	${BINDIR}/c++ ${BINDIR}/g++
  MLINKS=	g++.1 c++.1
  
  .PATH:          $(.CURDIR)/../common 
--- 569,575 ----
  LDADD+=		-lgnumalloc
  DPADD+=		/usr/lib/libgnumalloc.a
  
! LINKS+=	${BINDIR}/g++ ${BINDIR}/c++
  MLINKS=	g++.1 c++.1
  
  .PATH:          $(.CURDIR)/../common 
*** gnu/usr.bin/gcc/g++/Makefile-	Mon Dec 11 21:19:28 1995
--- gnu/usr.bin/gcc/g++/Makefile	Sat Dec 23 22:15:02 1995
***************
*** 10,16 ****
  LDADD+=		-lgnumalloc
  DPADD+=		/usr/lib/libgnumalloc.a
  
! LINKS+=	${BINDIR}/c++ ${BINDIR}/g++
  MLINKS=	g++.1 c++.1
  
  .PATH:          $(.CURDIR)/../common 
--- 10,16 ----
  LDADD+=		-lgnumalloc
  DPADD+=		/usr/lib/libgnumalloc.a
  
! LINKS+=	${BINDIR}/g++ ${BINDIR}/c++
  MLINKS=	g++.1 c++.1
  
  .PATH:          $(.CURDIR)/../common 
>Audit-Trail:
>Unformatted: