compiling libstdc++ as a shared library

The Red Fox ben@proximity.com.au
Sun Dec 21 20:33:00 GMT 1997


Hi,

Here comes what is probably a stupid question: how do you compile
libstdc++ in the egcs-1.0 distribution as a shared library, but without
compiling the compiler  again (gcc and g++ have already been built and
installed in /usr/local).

I assume to actually get configure to set things up to make the shared lib
you need to change line 39 of libstdc++/Makefile.in from

LIBS    = $(ARLIB)

to

LIBS    = $(ARLIB) $(SHLIB)

and then configure again from the build directory. After doing all that I
can't work out how to compile libstdc++ by itself without making gcc and
g++ again.

I imagine this is fairly straightforward to do?

Thankee,
Ben

+---------------------------------------------------------+
|\\ + //   Ben Ross                                \\ ^ //|
| \- -/    ben@proximity.com.au                     \` '/ |
|  \|/     http://www.proximity.com.au/~ben/         \~/  |
+---+-------------------------------------------------+---+




More information about the Gcc mailing list