From 92a8e2a70d3b0ec56529e2988b67925fead6b6b7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 18 Feb 2015 18:24:18 +0000 Subject: [PATCH] squid: Disable atomic ops on ARM GCC uses interfaces from libgcc(.a) to emulate atomic operations that are not supported in the armv5tel instruction set but fails to correctly link libgcc(.a). --- lfs/squid | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lfs/squid b/lfs/squid index f1bc42128e..bfdebaf64c 100644 --- a/lfs/squid +++ b/lfs/squid @@ -122,6 +122,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) --enable-zph-qos \ --disable-arch-native +ifeq "$(MACHINE)" "armv5tel" + # ARM won't be able to link squid correctly when libgcc is emulating + # atomic CPU operations in software + sed -e "s/define HAVE_ATOMIC_OPS 1/undef HAVE_ATOMIC_OPS/g" -i $(DIR_APP)/include/autoconf.h +endif + cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install -- 2.39.5