From 13d9b0231abe6e1d6c404725746308a98bdab8c6 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 29 Mar 2019 18:56:54 +0100 Subject: [PATCH] BUILD: Makefile: disable shared cache on AIX 5.1 AIX 5.1 is missing the following builtins used for atomic locking of the shared inter-process cache : .__sync_val_compare_and_swap_4 .__sync_lock_test_and_set_4 .__sync_sub_and_fetch_4 Let's simply use the private cache by default since nobody cares on such old systems. No test was made on a more recent version. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9bb24f1ff..297d97c20 100644 --- a/Makefile +++ b/Makefile @@ -381,7 +381,7 @@ endif # AIX 5.1 only ifeq ($(TARGET),aix51) set_target_defaults = $(call default_opts, \ - USE_POLL USE_LIBCRYPT USE_OBSOLETE_LINKER) + USE_POLL USE_LIBCRYPT USE_OBSOLETE_LINKER USE_PRIVATE_CACHE) TARGET_CFLAGS = -Dss_family=__ss_family -Dip6_hdr=ip6hdr -DSTEVENS_API -D_LINUX_SOURCE_COMPAT -Dunsetenv=my_unsetenv DEBUG_CFLAGS = endif