File tree 7 files changed +13
-13
lines changed
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 $
2
2
3
3
MODULES = earthdistance
4
4
DATA_built = earthdistance.sql
5
5
DATA = uninstall_earthdistance.sql
6
6
REGRESS = earthdistance
7
7
8
- SHLIB_LINK += $(filter -lm, $(LIBS ) )
8
+ LDFLAGS_SL += $(filter -lm, $(LIBS ) )
9
9
10
10
ifdef USE_PGXS
11
11
PG_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 $
2
2
3
3
MODULES = autoinc insert_username moddatetime refint timetravel
4
4
DATA_built = $(addsuffix .sql, $(MODULES ) )
@@ -8,6 +8,8 @@ DOCS = $(addsuffix .example, $(MODULES))
8
8
# comment out if you want a quieter refint package for other uses
9
9
PG_CPPFLAGS = -DREFINT_VERBOSE
10
10
11
+ LDFLAGS_SL += -L$(top_builddir ) /src/port -lpgport
12
+
11
13
ifdef USE_PGXS
12
14
PG_CONFIG = pg_config
13
15
PGXS := $(shell $(PG_CONFIG ) --pgxs)
@@ -18,5 +20,3 @@ top_builddir = ../..
18
20
include $(top_builddir ) /src/Makefile.global
19
21
include $(top_srcdir ) /contrib/contrib-global.mk
20
22
endif
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 $
2
2
3
3
MODULES = tablefunc
4
4
DATA_built = tablefunc.sql
5
5
DATA = uninstall_tablefunc.sql
6
6
REGRESS = tablefunc
7
7
8
- SHLIB_LINK += $(filter -lm, $(LIBS ) )
8
+ LDFLAGS_SL += $(filter -lm, $(LIBS ) )
9
9
10
10
ifdef USE_PGXS
11
11
PG_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
39
39
40
40
# Rule for building a shared library from a single .o file
41
41
%$(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 $
2
2
DLLTOOL= dlltool
3
3
DLLWRAP= dllwrap
4
4
ifdef PGXS
41
41
# Rule for building a shared library from a single .o file
42
42
%.dll: %.o
43
43
$(DLLTOOL) --export-all --output-def $*.def $<
44
- $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK )
44
+ $(DLLWRAP) -o $@ --def $*.def $< $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS )
45
45
rm -f $*.def
Original file line number Diff line number Diff line change 10
10
11
11
# Rule for building a shared library from a single .o file
12
12
%.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 $
2
2
3
3
# Use replacement include files for those missing on Win32
4
4
override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
@@ -69,5 +69,5 @@ win32ver.o: win32ver.rc
69
69
# Rule for building a shared library from a single .o file
70
70
%.dll: %.o
71
71
$(DLLTOOL) --export-all --output-def $*.def $<
72
- $(DLLWRAP) -o $@ --def $*.def $< $(SHLIB_LINK )
72
+ $(DLLWRAP) -o $@ --def $*.def $< $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS )
73
73
rm -f $*.def
You can’t perform that action at this time.
0 commit comments