]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
squid: Disable atomic ops on ARM alltogether
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Feb 2015 18:24:18 +0000 (18:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Feb 2015 18:24:18 +0000 (18:24 +0000)
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

index f1bc42128e4d55c97df19d918afb7a15f164cd35..bfdebaf64ce7a0daa97483e27043e04ff8e6cdb1 100644 (file)
--- 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