mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
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>
This commit is contained in:
parent
0162131675
commit
ccdb179d24
@ -144,7 +144,7 @@ int main(int argc, char **argv)
|
|||||||
/* Fill in the relative paths */
|
/* Fill in the relative paths */
|
||||||
#ifdef BR_CROSS_PATH_REL
|
#ifdef BR_CROSS_PATH_REL
|
||||||
ret = snprintf(path, sizeof(path), "%s/" BR_CROSS_PATH_REL "/%s", absbasedir, basename);
|
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);
|
ret = snprintf(path, sizeof(path), BR_CROSS_PATH_ABS "/%s", basename);
|
||||||
#else /* BR_CROSS_PATH_SUFFIX */
|
#else /* BR_CROSS_PATH_SUFFIX */
|
||||||
ret = snprintf(path, sizeof(path), "%s/usr/bin/%s" BR_CROSS_PATH_SUFFIX, absbasedir, basename);
|
ret = snprintf(path, sizeof(path), "%s/usr/bin/%s" BR_CROSS_PATH_SUFFIX, absbasedir, basename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user