haproxy: tweak thread activation
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 2 Oct 2018 19:28:58 +0000 (21:28 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 3 Oct 2018 07:47:13 +0000 (09:47 +0200)
commitf22fca4bf27f884950dd7804020e5d5193b570b9
tree68d98421e80c73602dc3b653cef6e1bd984a99a5
parentb7a9f919c02358964b88d43daa456230b11f5588
haproxy: tweak thread activation

If threads are enabled, as described in include/common/hathreads.h,
haproxy uses __sync_*_4 intrisics if gcc < 4.7. Otherwise, haproxy
uses __atomic_ intrinsics.

As a result, instead of adding a dependency on BR2_TOOLCHAIN_HAS_SYNC_4
and BR2_TOOLCHAIN_HAS_ATOMIC in Config.in, enable threads only if the
dependencies are fulfilled in haproxy.mk

Fixes:
 - http://autobuild.buildroot.org/results/7f24873ecdd9246c95c03bb8d2fcd4c16c488c6c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/haproxy/Config.in
package/haproxy/haproxy.mk