aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-05-22 21:46:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-05-22 21:46:40 +0000
commitc0fdec2b6a5ff5981c097101a938dea890be2392 (patch)
tree4fa29bd8271388c4a11eedccdc60bd679f519988 /src
parenta2597ef17958e75e7ba26507dc407249cc9e7134 (diff)
downloadpostgresql-c0fdec2b6a5ff5981c097101a938dea890be2392.tar.gz
postgresql-c0fdec2b6a5ff5981c097101a938dea890be2392.zip
Add $(LDFLAGS) to Windows make rule for postgres executable. Needed
to do profiling on Cygwin, per report from Dave Page.
Diffstat (limited to 'src')
-rw-r--r--src/backend/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 6e7512ee94f..f10efb8919e 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.78 2002/05/05 00:03:28 tgl Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.79 2002/05/22 21:46:40 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -45,9 +45,9 @@ else # win
# commands into variables?
postgres: $(OBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
dlltool --dllname $@$(X) --output-exp $@.exp --def postgres.def
- gcc -g -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(DLLLIBS)
+ gcc $(LDFLAGS) -g -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(DLLLIBS)
dlltool --dllname $@$(X) --base-file $@.base --output-exp $@.exp --def postgres.def
- gcc -g -o $@$(X) $@.exp $(OBJS) $(DLLLIBS)
+ gcc $(LDFLAGS) -g -o $@$(X) $@.exp $(OBJS) $(DLLLIBS)
rm $@.exp $@.base
endif # win