Copy chunk from old ../postgresql: gcc is needed for postgresql 10.6+ on i386.

This commit is contained in:
sthen 2019-02-21 13:08:25 +00:00
parent 850f3ce9b8
commit 3d8c77c4a5

View File

@ -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