From owner-freebsd-bugs Thu Sep 26 13:40:12 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA03326 for bugs-outgoing; Thu, 26 Sep 1996 13:40:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA03269; Thu, 26 Sep 1996 13:40:06 -0700 (PDT) Resent-Date: Thu, 26 Sep 1996 13:40:06 -0700 (PDT) Resent-Message-Id: <199609262040.NAA03269@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, charnier@xp11.frmug.org 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 ; 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" Reply-To: charnier@xp11.frmug.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: gnu/1683: c++/g++ file.cc fails at link time (no libstdc++). Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1683 >Category: gnu >Synopsis: c++/g++ tries to link with libstdc++. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 26 13:40:03 PDT 1996 >Last-Modified: >Originator: Ph. Charnier >Organization: >Release: FreeBSD 2.2-CURRENT i386 >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) >Audit-Trail: >Unformatted: