From charnier@xp11.frmug.org  Thu Sep 26 13:39:32 1996
Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA02897
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Sep 1996 13:39:24 -0700 (PDT)
Received: (from uucp@localhost) by frmug.org (8.6.8/8.6.9) with UUCP id WAA02906 for FreeBSD-gnats-submit@freebsd.org; Thu, 26 Sep 1996 22:39:02 +0200
Received: (from charnier@localhost) by xp11.frmug.org (8.7.6/8.7.3/xp11-uucp-1.1) id WAA07020; Thu, 26 Sep 1996 22:36:24 +0200 (MET DST)
Message-Id: <199609262036.WAA07020@xp11.frmug.org>
Date: Thu, 26 Sep 1996 22:36:24 +0200 (MET DST)
From: "Ph. Charnier" <charnier@xp11.frmug.org>
Reply-To: charnier@xp11.frmug.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: c++/g++ file.cc fails at link time (no libstdc++).
X-Send-Pr-Version: 3.2

>Number:         1683
>Category:       gnu
>Synopsis:       c++/g++ tries to link with libstdc++.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    peter
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 26 13:40:03 PDT 1996
>Closed-Date:    Thu Sep 26 22:14:02 PDT 1996
>Last-Modified:  Thu Sep 26 22:16:27 PDT 1996
>Originator:     Ph. Charnier
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
>Environment:

	

>Description:

	libstdc++ is not included but g++ wants it.

>How-To-Repeat:

	g++ file.cc -o file

>Fix:
	
Index: cp/g++.c
===================================================================
RCS file: /home2h/FreeBSD.cvsroot/src/contrib/gcc/cp/g++.c,v
retrieving revision 1.2
diff -u -r1.2 g++.c
--- g++.c	1996/09/18 06:33:32	1.2
+++ g++.c	1996/09/26 20:25:13
@@ -371,6 +371,8 @@
 
   /* This will be 0 if we encounter a situation where we should not
      link in libstdc++, or 2 if we should link in libg++ as well.  */
+  /* Under FreeBSD library == 1 is dummy because libstdc++ doesn't 
+     exist. */
   int library = 1;
 
   /* Used to track options that take arguments, so we don't go wrapping
@@ -542,8 +544,10 @@
       /* Add `-lg++' if we haven't already done so.  */
       if (library == 2)
 	arglist[j++] = "-lg++";
+#ifndef __FreeBSD__
       if (library)
 	arglist[j++] = "-lstdc++";
+#endif
       if (saw_math)
 	arglist[j++] = saw_math;
       else if (library)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Thu Sep 26 22:14:02 PDT 1996 
State-Changed-Why:  
Suggested tempoary fix applied, g++.c rev 1.3 


Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: peter 
Responsible-Changed-When: Thu Sep 26 22:14:02 PDT 1996 
Responsible-Changed-Why:  
This is my problem.. 
>Unformatted:
