Skip to content

Commit ac65246

Browse files
committed
Partial fixes for contrib build on AIX: include -lm where needed.
Per Rocco Altier.
1 parent d675226 commit ac65246

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

contrib/cube/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.12 2004/08/20 20:13:02 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.13 2005/07/24 23:30:09 tgl Exp $
22

33
MODULE_big = cube
44
OBJS= cube.o cubeparse.o
@@ -9,6 +9,7 @@ REGRESS = cube
99

1010
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
1111

12+
SHLIB_LINK += $(filter -lm, $(LIBS))
1213

1314
ifdef USE_PGXS
1415
PGXS = $(shell pg_config --pgxs)

contrib/earthdistance/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.14 2004/08/20 20:13:03 momjian Exp $
1+
# $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.15 2005/07/24 23:30:09 tgl Exp $
22

33
MODULES = earthdistance
44
DATA_built = earthdistance.sql
55
DOCS = README.earthdistance
66
REGRESS = earthdistance
77

8+
SHLIB_LINK += $(filter -lm, $(LIBS))
9+
810
ifdef USE_PGXS
911
PGXS = $(shell pg_config --pgxs)
1012
include $(PGXS)

contrib/tablefunc/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ DATA_built = tablefunc.sql
33
DOCS = README.tablefunc
44
REGRESS = tablefunc
55

6+
SHLIB_LINK += $(filter -lm, $(LIBS))
7+
68
ifdef USE_PGXS
79
PGXS = $(shell pg_config --pgxs)
810
include $(PGXS)

contrib/tsearch2/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.8 2004/10/17 23:09:31 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/tsearch2/Makefile,v 1.9 2005/07/24 23:30:10 tgl Exp $
22

33
MODULE_big = tsearch2
44
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
1919
DOCS = README.tsearch2
2020
REGRESS = tsearch2
2121

22-
SHLIB_LINK := -lm
22+
SHLIB_LINK += $(filter -lm, $(LIBS))
2323

2424

2525
ifdef USE_PGXS

src/makefiles/Makefile.aix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
2828

2929
%$(DLSUFFIX): %.o %$(EXPSUFF)
3030
@echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
31-
$(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(LIBS)
31+
$(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(SHLIB_LINK)
3232

3333
sqlmansect = 7

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy