File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1- # $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.19 2007/11/10 23:59:50 momjian Exp $
1+ # $PostgreSQL: pgsql/contrib/earthdistance/Makefile,v 1.20 2010/07/05 23:15:55 tgl Exp $
22
33MODULES = earthdistance
44DATA_built = earthdistance.sql
55DATA = uninstall_earthdistance.sql
66REGRESS = earthdistance
77
8- SHLIB_LINK += $(filter -lm, $(LIBS ) )
8+ LDFLAGS_SL += $(filter -lm, $(LIBS ) )
99
1010ifdef USE_PGXS
1111PG_CONFIG = pg_config
Original file line number Diff line number Diff line change 1- # $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.28 2007/12/03 04:22:54 tgl Exp $
1+ # $PostgreSQL: pgsql/contrib/spi/Makefile,v 1.29 2010/07/05 23:15:56 tgl Exp $
22
33MODULES = autoinc insert_username moddatetime refint timetravel
44DATA_built = $(addsuffix .sql, $(MODULES ) )
@@ -8,6 +8,8 @@ DOCS = $(addsuffix .example, $(MODULES))
88# comment out if you want a quieter refint package for other uses
99PG_CPPFLAGS = -DREFINT_VERBOSE
1010
11+ LDFLAGS_SL += -L$(top_builddir ) /src/port -lpgport
12+
1113ifdef USE_PGXS
1214PG_CONFIG = pg_config
1315PGXS := $(shell $(PG_CONFIG ) --pgxs)
@@ -18,5 +20,3 @@ top_builddir = ../..
1820include $(top_builddir ) /src/Makefile.global
1921include $(top_srcdir ) /contrib/contrib-global.mk
2022endif
21-
22- SHLIB_LINK += -L$(top_builddir ) /src/port -lpgport
Original file line number Diff line number Diff line change 1- # $PostgreSQL: pgsql/contrib/tablefunc/Makefile,v 1.9 2007/11/10 23:59:51 momjian Exp $
1+ # $PostgreSQL: pgsql/contrib/tablefunc/Makefile,v 1.10 2010/07/05 23:15:56 tgl Exp $
22
33MODULES = tablefunc
44DATA_built = tablefunc.sql
55DATA = uninstall_tablefunc.sql
66REGRESS = tablefunc
77
8- SHLIB_LINK += $(filter -lm, $(LIBS ) )
8+ LDFLAGS_SL += $(filter -lm, $(LIBS ) )
99
1010ifdef USE_PGXS
1111PG_CONFIG = pg_config
Original file line number Diff line number Diff line change @@ -39,4 +39,4 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
3939
4040# Rule for building a shared library from a single .o file
4141%$(DLSUFFIX): %.o %.exp
42- $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bE:$*.exp $(SHLIB_LINK )
42+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bE:$*.exp $(BE_DLLLIBS )
Original file line number Diff line number Diff line change 1- # $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.14 2010/07/05 18:54:38 tgl Exp $
1+ # $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.15 2010/07/05 23:15:56 tgl Exp $
22DLLTOOL= dlltool
33DLLWRAP= dllwrap
44ifdef PGXS
4141# Rule for building a shared library from a single .o file
4242%.dll: %.o
4343 $(DLLTOOL) --export-all --output-def $*.def $<
44- $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK )
44+ $(DLLWRAP) -o $@ --def $*.def $< $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS )
4545 rm -f $*.def
Original file line number Diff line number Diff line change 1010
1111# Rule for building a shared library from a single .o file
1212%.so: %.o
13- $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle -o $@ $< $(BE_DLLLIBS)
13+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle $(BE_DLLLIBS) -o $@ $<
Original file line number Diff line number Diff line change 1- # $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.16 2010/07/05 18:54:38 tgl Exp $
1+ # $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.17 2010/07/05 23:15:56 tgl Exp $
22
33# Use replacement include files for those missing on Win32
44override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
@@ -69,5 +69,5 @@ win32ver.o: win32ver.rc
6969# Rule for building a shared library from a single .o file
7070%.dll: %.o
7171 $(DLLTOOL) --export-all --output-def $*.def $<
72- $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK )
72+ $(DLLWRAP) -o $@ --def $*.def $< $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS )
7373 rm -f $*.def
You can’t perform that action at this time.
0 commit comments