aboutsummaryrefslogtreecommitdiff
path: root/packages/gcc/12.2.0/0005-driver-Extend-getenv-function-to-allow-default-value.patch
Commit message (Collapse)AuthorAgeFilesLines
* gcc/12.2.0: Regenerate patchesChris Packham2023-04-301-102/+0
| | | | | | | | | | Run the patches through ./maintainer/manage-packages.sh -P -s gcc-12.2.0 to mop up the fact that we'd ended up with two 0005 patches. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* packages/gcc: Add gcc patch to allow getenv default valuesKeith Packard2023-02-281-0/+102
This patch, submitted upstream but not (yet?) accepted, adds a third parameter to the specs file 'getenv' function that provides a value for when the environment variable is not set, instead of having gcc fail. This seemed like the safest way to provide a mechanism for getting the installed location of the toolchain from inside a specs file as, when not installed in the built-in location, gcc already sets the GCC_EXEC_PREFIX environment variable to a well defined location within that directory hierarchy, but when installed in the location specified at compile time, gcc does not. Providing a default value that matches the compile-time location then allows the specs file to compute paths relative to the current GCC installation location, whereever it is installed. Signed-off-by: Keith Packard <keithp@keithp.com>