From 3d8c77c4a57256cba7e04236a25785f40a0750cf Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 21 Feb 2019 13:08:25 +0000 Subject: [PATCH] Copy chunk from old ../postgresql: gcc is needed for postgresql 10.6+ on i386. --- databases/postgresql-previous/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/databases/postgresql-previous/Makefile b/databases/postgresql-previous/Makefile index 533fe6a8330..71f66c65a9c 100644 --- a/databases/postgresql-previous/Makefile +++ b/databases/postgresql-previous/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2019/02/19 05:09:58 jeremy Exp $ +# $OpenBSD: Makefile,v 1.8 2019/02/21 13:08:25 sthen Exp $ COMMENT= PostgreSQL RDBMS (previous version, for pg_upgrade) @@ -63,6 +63,14 @@ CONFIGURE_ARGS= --with-openssl=/usr \ CONFIGURE_ARGS+=--disable-spinlocks .endif +# To avoid problems with missed floating point overflow checks. +# pgsql 10.6+ refuses to build on i386 clang unless -msse2 is set. +# If clang gains "-fexcess-precision=standard" support then this +# should be removed. +MODULES+= gcc4 +MODGCC4_ARCHS= i386 +MODGCC4_LANGS= c + MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/config ALL_TARGET= all