Advertisement
Guest User

Untitled

a guest
Apr 8th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.53 KB | None | 0 0
  1. jow@wws-7 $ cat toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch
  2. --- a/gcc/gcc.c
  3. +++ b/gcc/gcc.c
  4. @@ -7772,7 +7772,10 @@ getenv_spec_function (int argc, const ch
  5.  
  6.    value = getenv (argv[0]);
  7.    if (!value)
  8. -    fatal_error ("environment variable %qs not defined", argv[0]);
  9. +    {
  10. +      warning (0, "environment variable %qs not defined", argv[0]);
  11. +      value = "";
  12. +    }
  13.  
  14.    /* We have to escape every character of the environment variable so
  15.       they are not interpreted as active spec characters.  A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement