Message ID | 51BC8019-C0EA-4581-A894-48CED8ECA2BE@sandoe-acoustics.co.uk |
---|---|
State | New |
Headers | show |
On Fri, 11 Feb 2011, IainS wrote: > Hi, > > Darwin's ld won't accept -F separated from its following path argument. > > The behavior of trunk differs from 4.5.x, which does not separate the > argument. > > .. I just followed the example of -L ... > > OK for trunk? OK.
Index: gcc/gcc.c =================================================================== --- gcc/gcc.c (revision 170045) +++ gcc/gcc.c (working copy) @@ -3330,6 +3330,11 @@ driver_handle_option (struct gcc_options *opts, save_switch (concat ("-L", arg, NULL), 0, NULL, validated); return true; + case OPT_F: + /* Likewise -F. */ + save_switch (concat ("-F", arg, NULL), 0, NULL, validated); + return true; + case OPT_save_temps: save_temps_flag = SAVE_TEMPS_CWD; validated = true;