Link pg_stat_statements with libm.
authorNoah Misch <noah@leadboat.com>
Thu, 9 Jul 2015 00:44:22 +0000 (20:44 -0400)
committerNoah Misch <noah@leadboat.com>
Thu, 9 Jul 2015 00:44:26 +0000 (20:44 -0400)
The AIX 7.1 libm is static, and AIX postgres executables do not export
symbols acquired from libraries.  Back-patch to 9.5, where commit
cfe12763c32437bc708a64ce88a90c7544f16185 added a sqrt() call.

contrib/pg_stat_statements/Makefile

index 975a637897cdf33235a42e781fa3ff0f9f77e43d..835ec82fc605604c6053bec9214cce47b034ac46 100644 (file)
@@ -9,6 +9,8 @@ DATA = pg_stat_statements--1.3.sql pg_stat_statements--1.2--1.3.sql \
    pg_stat_statements--unpackaged--1.0.sql
 PGFILEDESC = "pg_stat_statements - execution statistics of SQL statements"
 
+LDFLAGS_SL += $(filter -lm, $(LIBS))
+
 ifdef USE_PGXS
 PG_CONFIG = pg_config
 PGXS := $(shell $(PG_CONFIG) --pgxs)