package/upx: fix build with host gcc 6.x
authorMartin Bark <martin@barkynet.com>
Thu, 16 Jun 2016 16:05:54 +0000 (17:05 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 1 Jul 2016 14:17:21 +0000 (16:17 +0200)
Disable the -Werror gcc option because is causes the following error
when using gcc 6.x on the host.

 p_vmlinx.cpp:100:5: error: this ‘if’ clause does not guard...
  [-Werror=misleading-indentation] if (a->p_paddr > b->p_paddr) return  1;

Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/upx/upx.mk

index 400d28328d79b53335f355fa19fe43e60dc023a4..eaef27590ac64e05cf8864685be783763fc1213c 100644 (file)
@@ -17,6 +17,7 @@ HOST_UPX_DEPENDENCIES = host-ucl host-zlib
 define HOST_UPX_BUILD_CMDS
        $(HOST_MAKE_ENV) $(MAKE) CPPFLAGS="$(HOST_CPPFLAGS)" \
                LDFLAGS="$(HOST_LDFLAGS)" UPX_UCLDIR=$(HOST_DIR)/usr \
+               CXXFLAGS_WERROR= \
                -C $(@D) all
 endef