From be07e031d04e5cab26856f1b5b5c2572f34ebb7b Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Mon, 19 Mar 2018 23:51:04 +0100 Subject: [PATCH] postgresql: fix build for ARC arch When building for ARC the compile fails with: /var/lib/buildbot/slaves/dave-builder/arc_arc700/build/sdk/build_dir/target-arc_arc700_uClibc/postgresql-9.6.5/src/include/storage/s_lock.h:899:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql-bugs@postgresql.org. So disable spinlocks when compiling for this arch. This was done likewise for the avr32 target, which is not supported anymore, so this can be deleted. Signed-off-by: Sebastian Kemper --- libs/postgresql/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index f10d7b864..277c3022e 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -153,7 +153,7 @@ CONFIGURE_ARGS += \ --without-tcl \ --with-zlib="yes" \ --enable-depend \ - $(if $(CONFIG_TARGET_avr32),--disable-spinlocks) + $(if $(CONFIG_arc),--disable-spinlocks) # Need a native ecpg, pg_config and zic for build define Host/Compile