buildrootschalter/toolchain/toolchain-external
Patrick Ziegler 74ae7af927 ext-toolchain-wrapper: fix paths if executable was resolved by PATH
If ext-toolchain-wrapper or any symbolic link to it was resolved by PATH,
the wrapper takes the working directory to calculate the relative paths.

Now '/proc/self/exe' is used to resolve the absolute path to the toolchain
directory if the wrapper was called neither with a relative nor an absolute
path.

[Peter: fix off-by-one, swap value == var checks around]
Signed-off-by: Patrick Ziegler <patrick.ziegler@fh-kl.de>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-31 22:05:44 +02:00
..
Config.in toolchain: blackfin: Remove Blackfin toolchain 2011R1 release. 2013-05-27 23:51:31 +02:00
ext-tool.mk toolchain: blackfin: Remove Blackfin toolchain 2011R1 release. 2013-05-27 23:51:31 +02:00
ext-toolchain-wrapper.c ext-toolchain-wrapper: fix paths if executable was resolved by PATH 2013-05-31 22:05:44 +02:00