mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
gcc: Add GCC 4.6 patches from official openwrt.git toolchain directory.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
This commit is contained in:
14
devel/gcc/patches/920-specs_nonfatal_getenv.patch
Normal file
14
devel/gcc/patches/920-specs_nonfatal_getenv.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user