This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ 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]

Re: How to pass gcc extra configs with special character to ct-ng


On Tue, Aug 24, 2010 at 04:02:08PM +0200, Yann E. MORIN wrote:
> On Tuesday 24 August 2010 15:03:31 Chih-Min Chao wrote:
> > [DEBUG]    ==> Executing:
> > '/home/cmchao/tool/test/x-ng/targets/src/gcc-4.4.3/configure
> > --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
> > --target=arm-igs-linux-gnueabi
> > --prefix=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/gcc-core-static
> > --with-local-prefix=/home/cmchao/x-tools/arm-igs-linux-gnueabi/arm-igs-linux-gnueabi//sys-root
> > --disable-multilib --disable-libmudflap
> > --with-sysroot=/home/cmchao/x-tools/arm-igs-linux-gnueabi/arm-igs-linux-gnueabi//sys-root
> > --with-newlib --enable-threads=no --disable-shared
> > --with-pkgversion=crosstool-NG-1.8.0 --with-arch=armv5te
> > --enable-__cxa_atexit
> > --with-gmp=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> > --with-mpfr=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> > --with-ppl=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> > --with-cloog=/home/cmchao/tool/test/x-ng/targets/arm-igs-linux-gnueabi/build/static
> > --enable-target-optspace --disable-nls --enable-symvers=gnu
> > --enable-languages=c --disable-libssp --disable-lto --disable-libgomp
> > --disable-decimal-float --disable-libffi --enable-threads
> > '--with-specs=%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}
> > %{O2:%{!fno-remove-local-statics: -fremove-local-statics}}
> > %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics:
> > -fremove-local-statics}}}''
> > [ERROR]    configure: error: invalid variable name: '--with-specs
> 
> Ah! But, according to:
>   http://gcc.gnu.org/install/configure.html
> 
> --with-specs is not a valid, recognised option. So in this case, I'm not sure
> how ./configure treats it. It seems it tries to assign the right-hand part
> (after the '=' ) to the variable whose name in on the left-hand part (before
> the '=' ).

Maybe you need to add a new CT_CC_CORE_EXTRA_SPECS which uses
quoting, e.g.

in scripts/build/cc/gcc.sh

         --disable-nls                               \
         --enable-symvers=gnu                        \
         --enable-languages="${lang_opt}"            \
         ${CT_CC_CORE_EXTRA_CONFIG}
+        "${CT_CC_CORE_EXTRA_SPECS}"
 
Apparently it does not work to type the quotes into
CT_CC_CORE_EXTRA_CONFIG in menuconfig.


Johannes

--
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]