diff --git a/net/mgen/Makefile b/net/mgen/Makefile index 38a79617d..1e7e30fed 100644 --- a/net/mgen/Makefile +++ b/net/mgen/Makefile @@ -37,8 +37,8 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/unix \ - CC="$(TARGET_CXX)" \ - CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \ + CC="g++-uc" \ + CPPFLAGS="$(TARGET_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ SYSTEM_LIBS="-ldl -lpthread -luClibc++" \ -f Makefile.linux mgen