egcs-1.0: --enable-threads --> add "-lpthread" to libstdc++.so

Adam J. Richter adam@yggdrasil.com
Sat Dec 6 14:59:00 GMT 1997


	I unpacked and built egcs + HJ Lu's libg++.  I applied HJ's
patch for libg++ and configured with "--enable-haifa --enable-threads
--enable--shared."  Everything went well, except for the fact that
gperf is not runnable, because it links against libstdc++ without
also adding libpthread.

	This problem is fixable by editing egcs-1.0/libstdc++/config/linux.ml
and changing the line that reads "SHDEPS = -lm" to "SHDEPS = -lpthread -lm".

	However, what I really want is bring in "-lpthread" only
if I have configured with "--enable-threads".  I tried for a little
while to figure out how to do this under the Cygnus configure system,
but, after an hour of poking around, I've decided to just tell you
folks about it because it might take me a while to figure out how
to develop the correct change.

	Anyhow, let me say that I am very pleased to see the
"Bazaar" approach being following the GCC.  From experience, I
have become a strong believer in the open development model,
release early, release often, etc.  I am particuarly pleased to
see these GCC patches that have been floating around the internet
for literally years incorporated into a maintained release.  I
have heard third hand that the Pentium optimizations produced
something like a 30% performance improvement in some benchmark
used for the new XEmacs release.  I am looking forward to giving
egcs a whirl (I am assuming that "--enable-haifa" includes the Pentium
optimizations).

Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."



More information about the Gcc-bugs mailing list