tools/fakeroot: explicitly pass CPP variable
authorFelix Fietkau <nbd@nbd.name>
Wed, 13 Oct 2021 14:36:16 +0000 (16:36 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 16 Feb 2022 19:38:47 +0000 (20:38 +0100)
For some reason, the generated configure script fails to properly set up
the internal preprocessor command variable, causing the host OS check for
Darwin to fail after the last update.
Explicitly setting CPP fixes this issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 48e209e5c5a76dd0ce4a2a8b014416dc988269a3)

tools/fakeroot/Makefile

index e9daa4b6ad7b945f3b6d3731a39668dc9f5fab94..5f10070eaccbab7b805df6d0da5c9e813f718922 100644 (file)
@@ -19,7 +19,8 @@ include $(INCLUDE_DIR)/host-build.mk
 
 HOST_CONFIGURE_VARS += \
        ac_cv_header_sys_capability_h=no \
-       ac_cv_func_capset=no
+       ac_cv_func_capset=no \
+       CPP="$(HOSTCC) -E"
 
 HOST_CONFIGURE_ARGS += \
        --with-ipc=tcp