Skip to content

Commit b2692ec

Browse files
committed
Here is a patch for Versions 1 and 2 that corrects the following makefile
bugs: 1) linker flags LDFLAGS are missing on some of the links. 2) libpq.a is not listed as a dependency for the src/bin programs that depend on it. -- Bryan Henderson Phone 408-227-6803 San Jose, California
1 parent 22af16a commit b2692ec

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/bin/Makefile.global

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/bin/Attic/Makefile.global,v 1.6 1996/07/25 01:11:15 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/bin/Attic/Makefile.global,v 1.6.2.1 1996/08/21 04:28:02 scrappy Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -20,7 +20,8 @@ LIBPQ:= -L$(srcdir)/libpq/$(objdir) -lpq
2020

2121
LD_ADD+= $(LIBPQ)
2222
DPADD+= $(LIBPQ)
23-
23+
# LIB_DEP is the list of dependencies on libraries for the link.
24+
LIB_DEP+= $(srcdir)/libpq/$(objdir)/libpq.a
2425

2526
#
2627
# And where libpq goes, so goes the authentication stuff...

src/mk/postgres.lib.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
#
1313
# IDENTIFICATION
14-
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.lib.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
14+
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.lib.mk,v 1.1.1.1.2.1 1996/08/21 04:28:11 scrappy Exp $
1515
#
1616
#-------------------------------------------------------------------------
1717

@@ -34,7 +34,7 @@ endif
3434

3535
$(shlib): $(addprefix $(objdir)/,$(LIBOBJS))
3636
@rm -f $(objdir)/$(shlib)
37-
cd $(objdir); $(CC) -shared $(LIBOBJS) -o $(shlib)
37+
cd $(objdir); $(CC) $(LDFLAGS) -shared $(LIBOBJS) -o $(shlib)
3838

3939
CLEANFILES+= $(LIBOBJS) $(lib) $(shlib)
4040

src/mk/postgres.prog.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#
1111
#
1212
# IDENTIFICATION
13-
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $
13+
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.1.1.1.2.1 1996/08/21 04:28:13 scrappy Exp $
1414
#
1515
#-------------------------------------------------------------------------
1616

1717
PROGOBJS:= $(SRCS:%.c=%.o)
1818

19-
$(PROG): $(addprefix $(objdir)/,$(PROGOBJS))
20-
$(CC) $(CDEBUG) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
19+
$(PROG): $(addprefix $(objdir)/,$(PROGOBJS)) $(LIB_DEP)
20+
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
2121

2222
CLEANFILES+= $(PROGOBJS) $(PROG)
2323

0 commit comments

Comments
 (0)