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


Chih-Min, All,

On Tuesday 24 August 2010 13:42:06 Chih-Min Chao wrote:
> I want pass below extra config to gcc-core and gcc
> 
> --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}}}
> 
> The error will be
> /home/cmchao/tool/lib/ct-ng-1.8.0/scripts/functions: line 82: printf:
> `{': invalid format character

Care to test the attached patch, please?

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.  |
'------------------------------^-------^------------------^--------------------'
diff --git a/scripts/functions b/scripts/functions
--- a/scripts/functions
+++ b/scripts/functions
@@ -79,7 +79,7 @@
     if [ $# -eq 0 ]; then
         cat -
     else
-        printf "${*}\n"
+        printf "%s\n" "${*}"
     fi |( IFS="${CR}" # We want the full lines, even leading spaces
           _prog_bar_cpt=0
           _prog_bar[0]='/'

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