Skip to content

Commit 0689cfc

Browse files
committed
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 cfe1276 added a sqrt() call.
1 parent 1e700e0 commit 0689cfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/pg_stat_statements/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ DATA = pg_stat_statements--1.3.sql pg_stat_statements--1.2--1.3.sql \
99
pg_stat_statements--unpackaged--1.0.sql
1010
PGFILEDESC = "pg_stat_statements - execution statistics of SQL statements"
1111

12+
LDFLAGS_SL += $(filter -lm, $(LIBS))
13+
1214
ifdef USE_PGXS
1315
PG_CONFIG = pg_config
1416
PGXS := $(shell $(PG_CONFIG) --pgxs)

0 commit comments

Comments
 (0)