commit dec433d68aab6e24c245c0ea5b82137660c53b46
parent 6f80d6fa6899372ca23d87840c74b57bae912fad
Author: champtar <champetier.etienne@gmail.com>
Date: Thu, 30 Oct 2014 18:11:11 +0100
Merge pull request #485 from commodo/ovs-build-fix
openvswitch: fix build for gcc versions below 4.9
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile
@@ -119,6 +119,11 @@ define Build/Configure
$(call Build/Configure/Default,$(CONFIGURE_ARGS))
endef
+KCFLAGS=
+ifeq ($(CONFIG_GCC_VERSION_4_9),y)
+KCFLAGS:=-Wno-error=date-time
+endif
+
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
@@ -131,7 +136,7 @@ define Build/Compile
ARCH="$(LINUX_KARCH)" \
SUBDIRS="$(PKG_BUILD_DIR)/datapath/linux" \
PATH="$(TARGET_PATH)" \
- KCFLAGS="-Wno-error=date-time" \
+ KCFLAGS="$(KCFLAGS)" \
KCC="$(KERNEL_CC)"
endef