net-proxy/squid: fix cross-compiling
authorKan Yan <kyan@google.com>
Tue, 9 Jan 2018 20:04:07 +0000 (15:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Jan 2018 20:10:35 +0000 (15:10 -0500)
commitf0ef8838240c82dd67689b80bbb45d4c3d490296
tree093f1c4897b57604d449940ac65e690f54f2063f
parent5be999d58ee40609df72f3a50d0756ba0896fd58
net-proxy/squid: fix cross-compiling

Current versions of squid have a run test for gnu atomics w/no
cross-compile fallback causing builds to fail.  Upstream has
rewritten this completely, so until we update to a newer version,
force the cache variable when cross-compiling.  Forcing it to no
might not be optimal in all cases, but it's better than nothing.

We have been turning on large-file-system support for a while now,
but the configure test for that probes the build system for flags
to compile with (via `getconf ...`).  These flags don't work for
the cross-compile target, and in reality are rarely necessary.  By
selecting the default, we always go the standard POSIX route with
the -D_FILE_OFFSET_BITS=64 flag.  If a target doesn't respect that
flag, then it might fail to build, but we can wait for anyone to
complain.
net-proxy/squid/squid-3.5.27.ebuild