This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Christian, All, On Saturday 15 September 2012 12:46:40 Christian Kujau wrote: > On Sat, 15 Sep 2012 at 12:22, Yann E. MORIN wrote: > > config/cc/gcc.in.2: > > 43 config CC_STATIC_LIBSTDCXX > > 44 bool > > 45 prompt "Link libstdc++ statically into the gcc binary" > > 46 default y > > 47 depends on CC_GCC_4_4_or_later > > 48 select WANTS_STATIC_LINK > > Isn't CC_STATIC_LIBSTDCXX a blind option as well? No, it has a prompt. > Two lines above it reads: > 40 config STATIC_TOOLCHAIN > 41 select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later Yes, because if you want a static toolchain, then you need to statically link libstdc++. > And since I'm using GCC 4.6.2, CC_STATIC_LIBSTDCXX will be selected The defaults are: - STATIC_TOOLCHAIN=n (and hidden behind EXPERIMENTAL) - CC_STATIC_LIBSTDCXX=y Thus WANTS_STATIC_LINK=y because it is selected by CC_STATIC_LIBSTDCXX, not by STATIC_TOOLCHAIN. Using your provided .config, if you go into the menuconfig: C compiler ---> [*] Link libstdc++ statically into the gcc binary It can be disabled. And if I do it here, WANTS_STATIC_LINK is not set. > What is the advantage in having a static toolchain? It's more portable, so you can move it around machines without bothering about the host distro. If that's not your case, then de-select CC_STATIC_LIBSTDCXX. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |