From bf62652ecfbe1331f0eef5d198b8ac6db417a4d4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 7 May 2019 22:54:11 +0100 Subject: [PATCH] squid: Link against libatomic on ARM This package failed to build on ARM because atomic functions are being emulated on ARM32 and the required library was not linked. Signed-off-by: Michael Tremer --- lfs/squid | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lfs/squid b/lfs/squid index 0115cad82a..780f16548a 100644 --- a/lfs/squid +++ b/lfs/squid @@ -34,6 +34,10 @@ TARGET = $(DIR_INFO)/$(THISAPP) CXXFLAGS+= -Wno-error=format-truncation +ifeq "$(BUILD_ARCH)" "armv5tel" + LDFLAGS += -latomic +endif + ############################################################################### # Top-level Rules ############################################################################### @@ -77,7 +81,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && autoreconf -vfi cd $(DIR_APP)/libltdl && autoreconf -vfi - cd $(DIR_APP) && CXXFLAGS="$(CXXFLAGS)" ./configure \ + cd $(DIR_APP) && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \ + LDFLAGS="$(LDFLAGS)" ./configure \ --prefix=/usr \ --sysconfdir=/etc/squid \ --datadir=/usr/lib/squid \ -- 2.39.2