X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fgcc%2Fpatches%2F4.6-linaro%2F920-specs_nonfatal_getenv.patch;fp=toolchain%2Fgcc%2Fpatches%2F4.6-linaro%2F920-specs_nonfatal_getenv.patch;h=5055ae898e676d3a431efdce76c8e5f8fbf085e3;hb=0ecfeb5ef70c136141189e2dd514fa673044d5c7;hp=0000000000000000000000000000000000000000;hpb=ff6ac1157fa8b3ef28e9a4106b6995083641ee2b;p=openwrt-working-2016%2F.git diff --git a/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch b/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch new file mode 100644 index 0000000000..5055ae898e --- /dev/null +++ b/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch @@ -0,0 +1,14 @@ +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -7772,7 +7772,10 @@ getenv_spec_function (int argc, const ch + + value = getenv (argv[0]); + if (!value) +- fatal_error ("environment variable %qs not defined", argv[0]); ++ { ++ warning (0, "environment variable %qs not defined", argv[0]); ++ value = ""; ++ } + + /* We have to escape every character of the environment variable so + they are not interpreted as active spec characters. A