Skip to content
Commit d8e1ecb8 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

ext-tool.mk: fix SUPPORT_LIB_DIR calculation for toolchains without libstdc++



SUPPORT_LIB_DIR would get resolved to the main buildroot directory for
external toolchains without C++ support, as:

 - gcc -print-file-name=<nonexisting-file> returns <nonexisting-file>
 - readlink -f <nonexisting-file> returns $PWD/<nonexisting-file>

So fix it by ensuring output of gcc -print-file-name actually exists
before using it.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 1abaa98d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment