This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: pass bash variable as argument to gcc
- From: staticx <mohamedboussaa3 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 29 Oct 2015 07:14:15 -0700 (MST)
- Subject: Re: pass bash variable as argument to gcc
- Authentication-results: sourceware.org; auth=none
- References: <1446123464157-1199673 dot post at n5 dot nabble dot com> <n0t863$2po$1 at ger dot gmane dot org>
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.