You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. commit f78f501857cec8bb682b76faa9cbd5cc1e0dcad4
  2. Author: Willy Tarreau <w@1wt.eu>
  3. Date: Fri Mar 29 18:56:54 2019 +0100
  4. BUILD: Makefile: disable shared cache on AIX 5.1
  5. AIX 5.1 is missing the following builtins used for atomic locking of the
  6. shared inter-process cache :
  7. .__sync_val_compare_and_swap_4
  8. .__sync_lock_test_and_set_4
  9. .__sync_sub_and_fetch_4
  10. Let's simply use the private cache by default since nobody cares on
  11. such old systems. No test was made on a more recent version.
  12. (cherry picked from commit 13d9b0231abe6e1d6c404725746308a98bdab8c6)
  13. Signed-off-by: Willy Tarreau <w@1wt.eu>
  14. (cherry picked from commit 3349375d3f5820f261f9c3058ca6e5ced67f3505)
  15. Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
  16. diff --git a/Makefile b/Makefile
  17. index 955f1188..36df7b29 100644
  18. --- a/Makefile
  19. +++ b/Makefile
  20. @@ -358,7 +358,8 @@ ifeq ($(TARGET),aix51)
  21. # This is for AIX 5.1
  22. USE_POLL = implicit
  23. USE_LIBCRYPT = implicit
  24. - TARGET_CFLAGS = -Dss_family=__ss_family -Dip6_hdr=ip6hdr -DSTEVENS_API -D_LINUX_SOURCE_COMPAT
  25. + USE_PRIVATE_CACHE = implicit
  26. + TARGET_CFLAGS = -Dss_family=__ss_family -Dip6_hdr=ip6hdr -DSTEVENS_API -D_LINUX_SOURCE_COMPAT -Dunsetenv=my_unsetenv
  27. DEBUG_CFLAGS =
  28. else
  29. ifeq ($(TARGET),aix52)