Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 1995 18:51:15 -0400 (EDT)
From:      Chuck Robey <chuckr@Glue.umd.edu>
To:        Dan Yergeau <yergeau@gloworm.Stanford.EDU>
Cc:        asami@CS.Berkeley.EDU, FreeBSD-Ports@FreeBSD.org
Subject:   Re: c++filt 
Message-ID:  <Pine.SUN.3.91.950530184917.8215C-100000@cappuccino.eng.umd.edu>
In-Reply-To: <199505301756.KAA11918@gloworm.Stanford.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
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 = <whatever is
> 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!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.950530184917.8215C-100000>