From owner-freebsd-ports Tue May 30 15:51:35 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA24636 for ports-outgoing; Tue, 30 May 1995 15:51:35 -0700 Received: from jolt.eng.umd.edu (jolt.eng.umd.edu [129.2.102.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA24606 for ; Tue, 30 May 1995 15:51:29 -0700 Received: from cappuccino.eng.umd.edu (cappuccino.eng.umd.edu [129.2.98.14]) by jolt.eng.umd.edu (8.6.10/8.6.4) with ESMTP id SAA05887; Tue, 30 May 1995 18:51:18 -0400 Received: (chuckr@localhost) by cappuccino.eng.umd.edu (8.6.10/8.6.4) id SAA08361; Tue, 30 May 1995 18:51:15 -0400 Date: Tue, 30 May 1995 18:51:15 -0400 (EDT) From: Chuck Robey To: Dan Yergeau cc: asami@CS.Berkeley.EDU, FreeBSD-Ports@FreeBSD.org Subject: Re: c++filt In-Reply-To: <199505301756.KAA11918@gloworm.Stanford.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: ports-owner@FreeBSD.org Precedence: bulk On Tue, 30 May 1995, Dan Yergeau wrote: [some deletions] > Most of guts for c++filt is in cplus-dem.c, which is included with > GNU liberty. If you look at the Makefiles and the source... > > cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h > $(CC) -c -DMAIN $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS) $(BASEDIR)/libiberty/cplus-dem.c > > $(DEMANGLER_PROG): cplus-dem.o $(LIBIBERTY) underscore.o version.o > $(CC) $(CFLAGS) $(LDFLAGS) -o $(DEMANGLER_PROG) cplus-dem.o $(LIBIBERTY) $(EXTRALIBS) underscore.o version.o > > The "-DMAIN" turns on the compilation of main() in cplus-dem.c. > underscore.o adds "int prepends_underscore = appropriate>", and version.o is self-explanatory. > > Instead of dragging in the large binutils package and throwing 99.9% > away, it may be better to rewrite the liberty Makefile to generate > c++filt, or write an equivalent main() driver and link with with -liberty. It's not our package, it's GNU's, and I don't think cutting it up that way is an ethical thing to do. I will post a request to them to release it separately, but until then, I guess you have to make binutils to get it. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 7608 Topton St. | New Carrollton, MD 20784 | I run Journey2 (Freebsd 2.0) and n3lxx (301) 459-2316 | (FreeBSD 1.1.5.1) and am I happy! ----------------------------+-----------------------------------------------