From: Michael Tremer Date: Wed, 18 Feb 2015 18:24:18 +0000 (+0000) Subject: squid: Disable atomic ops on ARM X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Falltogether;p=people%2Fms%2Fipfire-2.x.git 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). --- 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