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).
--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