diff options
author | Noah Misch <noah@leadboat.com> | 2015-07-08 20:44:22 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-07-08 20:44:22 -0400 |
commit | 0689cfc34b09136b9daee9c60c85fbed21b62370 (patch) | |
tree | 767ef0bea358b0f9a0ce908b3a95b392265c4199 | |
parent | 1e700e0fa02b3fd8990d4eaa8bd51b9352cc9736 (diff) | |
download | postgresql-0689cfc34b09136b9daee9c60c85fbed21b62370.tar.gz postgresql-0689cfc34b09136b9daee9c60c85fbed21b62370.zip |
Link pg_stat_statements with libm.
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.
-rw-r--r-- | contrib/pg_stat_statements/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 975a637897c..835ec82fc60 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -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) |