]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
rstp: Fix build error with gcc 4.6.0.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Apr 2011 14:14:55 +0000 (16:14 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Apr 2011 14:15:31 +0000 (16:15 +0200)
Fixes #190.

pkgs/rstp/rstp.nm

index 3fbf6a3cbc276d92ea36a505ff8c7910308df33a..b66399065731347e6ba22963ca55835ee047f7b3 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = rstp
 PKG_VER        = 0.21
-PKG_REL        = 1
+PKG_REL        = 2
 
 PKG_MAINTAINER =
 PKG_GROUPS     = Networking/Tools
@@ -43,7 +43,9 @@ PKG_TARBALL    = $(THISAPP).tar.gz
 CFLAGS    += -fno-strict-aliasing
 
 define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/^CFLAGS = .*/& $(CFLAGS)/g" -i Makefile
+       cd $(DIR_APP) && sed -i Makefile \
+               -e "s/-Werror//" \
+               -e "s/^CFLAGS = .*/& $(CFLAGS)/g"
 endef
 
 define STAGE_BUILD