Skip to content

Commit c0fdec2

Browse files
committed
Add $(LDFLAGS) to Windows make rule for postgres executable. Needed
to do profiling on Cygwin, per report from Dave Page.
1 parent a2597ef commit c0fdec2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.78 2002/05/05 00:03:28 tgl Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.79 2002/05/22 21:46:40 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -45,9 +45,9 @@ else # win
4545
# commands into variables?
4646
postgres: $(OBJS) $(top_builddir)/src/utils/dllinit.o postgres.def libpostgres.a
4747
dlltool --dllname $@$(X) --output-exp $@.exp --def postgres.def
48-
gcc -g -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(DLLLIBS)
48+
gcc $(LDFLAGS) -g -o $@$(X) -Wl,--base-file,$@.base $@.exp $(OBJS) $(DLLLIBS)
4949
dlltool --dllname $@$(X) --base-file $@.base --output-exp $@.exp --def postgres.def
50-
gcc -g -o $@$(X) $@.exp $(OBJS) $(DLLLIBS)
50+
gcc $(LDFLAGS) -g -o $@$(X) $@.exp $(OBJS) $(DLLLIBS)
5151
rm $@.exp $@.base
5252

5353
endif # win

0 commit comments

Comments
 (0)