postgresql: fix build for ARC arch
authorSebastian Kemper <redacted>
Mon, 19 Mar 2018 22:51:04 +0000 (23:51 +0100)
committerSebastian Kemper <redacted>
Mon, 19 Mar 2018 22:54:56 +0000 (23:54 +0100)
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 <redacted>
libs/postgresql/Makefile

index f10d7b8642a0ad84d42a0c36606dc1cbd372b29a..277c3022e8d4f42cf2fb2b7df0a5c6942b935dff 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT