diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2015-09-23 23:12:31 -0400 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-10-21 15:57:26 -0400 |
commit | b851e928eacb9c27923a9028618d107fe22136fd (patch) | |
tree | 2760af48c0b1032325c1f948aa6cf7f42994b3ce /meta-networking/recipes-daemons | |
parent | 0289eac721085563ff727515022e8c61b2ecf30d (diff) | |
download | meta-openembedded-b851e928eacb9c27923a9028618d107fe22136fd.tar.gz |
squid: disable atomic operations for powerpc/mips
Don't enable GNU atomic operations for all targets, it fails on
powerpc and mips:
AtomicWord.h: undefined reference to `__sync_fetch_and_add_8'
collect2: error: ld returned 1 exit status
Refer to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56300:
There is no hardware support for 8 bytes atomic operations on
32-bit MIPS targets.
The 32-bit PowerPC fails as well.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r-- | meta-networking/recipes-daemons/squid/squid_3.5.7.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-networking/recipes-daemons/squid/squid_3.5.7.bb b/meta-networking/recipes-daemons/squid/squid_3.5.7.bb index 5d058dc26..5b27d4639 100644 --- a/meta-networking/recipes-daemons/squid/squid_3.5.7.bb +++ b/meta-networking/recipes-daemons/squid/squid_3.5.7.bb | |||
@@ -34,8 +34,11 @@ inherit autotools useradd ptest | |||
34 | USERADD_PACKAGES = "${PN}" | 34 | USERADD_PACKAGES = "${PN}" |
35 | USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid" | 35 | USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid" |
36 | 36 | ||
37 | PACKAGECONFIG ??= "" | 37 | PACKAGECONFIG ??= "${@base_contains('TARGET_ARCH', 'powerpc', 'noatomics', '', d)} \ |
38 | ${@base_contains('TARGET_ARCH', 'mips', 'noatomics', '', d)} \ | ||
39 | " | ||
38 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" | 40 | PACKAGECONFIG[libnetfilter-conntrack] = "--with-netfilter-conntrack=${includedir}, --without-netfilter-conntrack, libnetfilter-conntrack" |
41 | PACKAGECONFIG[noatomics] = "squid_cv_gnu_atomics=no,squid_cv_gnu_atomics=yes,," | ||
39 | 42 | ||
40 | BASIC_AUTH = "DB SASL LDAP NIS" | 43 | BASIC_AUTH = "DB SASL LDAP NIS" |
41 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 44 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
@@ -43,7 +46,6 @@ BASIC_AUTH += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAM', '', d)}" | |||
43 | 46 | ||
44 | EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}'" | 47 | EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}'" |
45 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" | 48 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" |
46 | CACHED_CONFIGUREVARS += "squid_cv_gnu_atomics=yes" | ||
47 | 49 | ||
48 | TESTDIR = "test-suite" | 50 | TESTDIR = "test-suite" |
49 | do_compile_ptest() { | 51 | do_compile_ptest() { |