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:26 -0400 |
| commit | c1fb42127944d5613df2f3d330c19448fc10ed01 (patch) | |
| tree | 878d02e28dd671ebae2900722952d58257e2cd5d | |
| parent | c0d7342f1650b6fdefc865c6da33e1f092778af0 (diff) | |
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) |
