Re: pass bash variable as argument to gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



root@f68kj:~# *export VAR="-fauto-inc-dec -falign-functions" gcc -Q $VAR
--help=optimizers*
bash: export: `-Q': not a valid identifier
bash: export: `-fauto-inc-dec': not a valid identifier
bash: export: `-falign-functions': not a valid identifier
bash: export: `--help=optimizers': not a valid identifier


However when I run this :
*gcc -Q -fauto-inc-dec -falign-functions --help=optimizers*

It works



--
View this message in context: http://gcc.1065356.n5.nabble.com/pass-bash-variable-as-argument-to-gcc-tp1199673p1199707.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux