diff options
author | Peter Korsgaard <peter@korsgaard.com> | 2015-10-05 08:25:17 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-10-05 08:25:17 +0200 |
commit | ccdb179d24a2d99ce4f3078bfcd2ffee5af60701 (patch) | |
tree | 3720e541d24f5c947b77ced75e08b925dee75f8f /toolchain | |
parent | 0162131675e22512edbb8a2030de9f1f30165579 (diff) | |
download | buildroot-ccdb179d24a2d99ce4f3078bfcd2ffee5af60701.tar.gz buildroot-ccdb179d24a2d99ce4f3078bfcd2ffee5af60701.zip |
toolchain-wrapper.c: unbreak BR_CROSS_PATH_ABS handling
Fixes #8386
We should check if BR_CROSS_PATH_ABS is defined, not if it evalutates to
true for the pre processor.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/toolchain-wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/toolchain-wrapper.c b/toolchain/toolchain-wrapper.c index 11f93f0fd5..632696c625 100644 --- a/toolchain/toolchain-wrapper.c +++ b/toolchain/toolchain-wrapper.c @@ -144,7 +144,7 @@ int main(int argc, char **argv) /* Fill in the relative paths */ #ifdef BR_CROSS_PATH_REL ret = snprintf(path, sizeof(path), "%s/" BR_CROSS_PATH_REL "/%s", absbasedir, basename); -#elif BR_CROSS_PATH_ABS +#elif defined(BR_CROSS_PATH_ABS) ret = snprintf(path, sizeof(path), BR_CROSS_PATH_ABS "/%s", basename); #else /* BR_CROSS_PATH_SUFFIX */ ret = snprintf(path, sizeof(path), "%s/usr/bin/%s" BR_CROSS_PATH_SUFFIX, absbasedir, basename); |