]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/apcupsd
apcupsd: Fix build with GCC 4.4.
[people/pmueller/ipfire-2.x.git] / lfs / apcupsd
index 5638cabc3d3a7f38f791da84affb512ebd3d40e9..a0da9357eb014413011ae86659d7cd98c2de5062 100644 (file)
@@ -77,6 +77,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/apcupsd-3.14.4-fix-gcc44.patch
        cd $(DIR_APP) && ./configure --prefix=/usr --enable-usb --enable-cgi \
                                        --with-cgi-bin=/srv/web/ipfire/cgi-bin
        cd $(DIR_APP) && make $(MAKETUNING)