Commit ac652466 authored by Tom Lane's avatar Tom Lane

Partial fixes for contrib build on AIX: include -lm where needed.

Per Rocco Altier.
parent d675226e
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.12 2004/08/20 20:13:02 momjian Exp $ # $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.13 2005/07/24 23:30:09 tgl Exp $
MODULE_big = cube MODULE_big = cube
OBJS= cube.o cubeparse.o OBJS= cube.o cubeparse.o
...@@ -9,6 +9,7 @@ REGRESS = cube ...@@ -9,6 +9,7 @@ REGRESS = cube
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS ifdef USE_PGXS
PGXS = $(shell pg_config --pgxs) PGXS = $(shell pg_config --pgxs)
......
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.14 2004/08/20 20:13:03 momjian Exp $ # $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.15 2005/07/24 23:30:09 tgl Exp $
MODULES = earthdistance MODULES = earthdistance
DATA_built = earthdistance.sql DATA_built = earthdistance.sql
DOCS = README.earthdistance DOCS = README.earthdistance
REGRESS = earthdistance REGRESS = earthdistance
SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS ifdef USE_PGXS
PGXS = $(shell pg_config --pgxs) PGXS = $(shell pg_config --pgxs)
include $(PGXS) include $(PGXS)
......
...@@ -3,6 +3,8 @@ DATA_built = tablefunc.sql ...@@ -3,6 +3,8 @@ DATA_built = tablefunc.sql
DOCS = README.tablefunc DOCS = README.tablefunc
REGRESS = tablefunc REGRESS = tablefunc
SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS ifdef USE_PGXS
PGXS = $(shell pg_config --pgxs) PGXS = $(shell pg_config --pgxs)
include $(PGXS) include $(PGXS)
......
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.8 2004/10/17 23:09:31 tgl Exp $ # $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.9 2005/07/24 23:30:10 tgl Exp $
MODULE_big = tsearch2 MODULE_big = tsearch2
OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \ OBJS = dict_ex.o dict.o snmap.o stopword.o common.o prs_dcfg.o \
...@@ -19,7 +19,7 @@ DATA_built = tsearch2.sql untsearch2.sql ...@@ -19,7 +19,7 @@ DATA_built = tsearch2.sql untsearch2.sql
DOCS = README.tsearch2 DOCS = README.tsearch2
REGRESS = tsearch2 REGRESS = tsearch2
SHLIB_LINK := -lm SHLIB_LINK += $(filter -lm, $(LIBS))
ifdef USE_PGXS ifdef USE_PGXS
......
...@@ -28,6 +28,6 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh ...@@ -28,6 +28,6 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
%$(DLSUFFIX): %.o %$(EXPSUFF) %$(DLSUFFIX): %.o %$(EXPSUFF)
@echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp @echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
$(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(LIBS) $(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(SHLIB_LINK)
sqlmansect = 7 sqlmansect = 7
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment