]> git.ipfire.org Git - people/arne_f/ipfire-2.x.git/blobdiff - lfs/squid
squid: Fix build with GCC 11
[people/arne_f/ipfire-2.x.git] / lfs / squid
index 38675f3f3e354fba4010006e72e1d4ce5f861f23..7766f3fc542778e08311fb4203a685c717bde2bc 100644 (file)
--- a/lfs/squid
+++ b/lfs/squid
@@ -34,10 +34,6 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 
 CXXFLAGS+= -Wno-error=format-truncation
 
-ifeq "$(BUILD_ARCH)" "armv5tel"
-       LDFLAGS += -latomic
-endif
-
 ifeq "$(BUILD_ARCH)" "riscv64"
        LDFLAGS += -latomic
 endif
@@ -81,6 +77,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xaf $(DIR_DL)/$(DL_FILE)
 
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squid-gcc11.patch
        cd $(DIR_APP) && autoreconf -vfi
        cd $(DIR_APP)/libltdl && autoreconf -vfi