This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pass bash variable as argument to gcc


I wonder if I can pass the content of a bash variable as an argument to gcc.
My variable is a list of optimization options like $var="-opt1 -opt2 -opt3"
gcc $var test.c -o object.o didn't work



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]