diff --git a/Sming/Arch/Host/Components/lwip/component.mk b/Sming/Arch/Host/Components/lwip/component.mk index ae5981140d..a92eaaa254 100644 --- a/Sming/Arch/Host/Components/lwip/component.mk +++ b/Sming/Arch/Host/Components/lwip/component.mk @@ -32,6 +32,7 @@ else endif CMAKE_OPTIONS += -DLWIP_LIBNAME=$(COMPONENT_VARIANT) +CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC) $(COMPONENT_RULE)$(COMPONENT_LIBPATH): $(Q) $(CMAKE) -DUSER_LIBDIR=$(COMPONENT_LIBDIR) $(CMAKE_OPTIONS) $(COMPONENT_PATH)/$(UNAME)