diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk index cd71bf468d..e6e34f5c72 100644 --- a/package/postgresql/postgresql.mk +++ b/package/postgresql/postgresql.mk @@ -93,6 +93,14 @@ else POSTGRESQL_CONF_OPTS += --without-systemd endif +POSTGRESQL_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) +POSTGRESQL_CFLAGS += -O0 +endif + +POSTGRESQL_CONF_ENV += CFLAGS="$(POSTGRESQL_CFLAGS)" + define POSTGRESQL_USERS postgres -1 postgres -1 * /var/lib/pgsql /bin/sh - PostgreSQL Server endef