This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

compiling libstdc++ as a shared library



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/         \~/  |
+---+-------------------------------------------------+---+



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]