Correct way to disable-shared, but enable-shared for modules

Richard Shih-Ping Chan cshihpin@dso.org.sg
Wed Dec 19 20:14:00 GMT 2001


Folks, what is the way to disable-shared globally but enable on some
modules. (I don't want the shared libgcc but want shared libstdc++ and
libjava).

Is it
./configure --disable-shared --enable-shared=libstdc++,libjava ??

(Are these module names correct BTW?)

Didn't seem to work for me on 3.0.2 (everything was built static). Is
this fixed in 3.0.3pre? (On 3.0.2 I seemed to have to hack the Makefile
to pass --enable-shared when configuring for TARGET_MODULES.)


-- 
Richard Chan <cshihpin@dso.org.sg>
DSO National Laboratories
20 Science Park Drive
Singapore 118230
Tel: 7727045
Fax: 7766476



More information about the Gcc mailing list