Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45ff93c

Browse files
committed
Include -lcrypt when needed to link libpgtcl.so and plpgsql.so
1 parentafd57db commit45ff93c

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

‎src/interfaces/libpgtcl/Makefile.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.33 1998/10/19 00:00:41 tgl Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.34 1999/02/07 22:10:45 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -27,7 +27,12 @@ endif
2727

2828
OBJS= pgtcl.o pgtclCmds.o pgtclId.o
2929

30-
SHLIB_LINK= -L../libpq -lpq
30+
SHLIB_LINK+= -L../libpq -lpq
31+
32+
# If crypt is a separate library, rather than part of libc, it may need
33+
# to be referenced separately to keep (broken) linkers happy. (This is
34+
# braindead; users of libpq should not need to know what it depends on.)
35+
SHLIB_LINK+=$(findstring -lcrypt,$(LIBS))
3136

3237
# Shared library stuff, also default 'all' target
3338
include$(SRCDIR)/Makefile.shlib

‎src/interfaces/libpq/Makefile.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.43 1999/02/02 18:51:29 momjian Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.44 1999/02/07 22:10:46 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -36,11 +36,7 @@ endif
3636

3737
# If crypt is a separate library, rather than part of libc,
3838
# make sure it gets included in shared libpq.
39-
ifeq ($(PORTNAME), win)
4039
SHLIB_LINK+=$(findstring -lcrypt,$(LIBS))
41-
else
42-
SHLIB_LINK=$(findstring -lcrypt,$(LIBS))
43-
endif
4440

4541
# Shared library stuff, also default 'all' target
4642
include$(SRCDIR)/Makefile.shlib

‎src/pl/plpgsql/src/Makefile.in

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for the plpgsql shared object
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.13 1999/01/17 06:19:53 momjian Exp $
7+
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.14 1999/02/07 22:10:47 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -24,11 +24,12 @@ LFLAGS+= -i -l
2424

2525
OBJS=pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
2626

27-
ifeq ($(PORTNAME), win)
2827
SHLIB_LINK+= -L$(LIBPQDIR) -lpq
29-
else
30-
SHLIB_LINK= -L$(LIBPQDIR) -lpq
31-
endif
28+
29+
# If crypt is a separate library, rather than part of libc, it may need
30+
# to be referenced separately to keep (broken) linkers happy. (This is
31+
# braindead; users of libpq should not need to know what it depends on.)
32+
SHLIB_LINK+=$(findstring -lcrypt,$(LIBS))
3233

3334
# Shared library stuff, also default 'all' target
3435
include$(SRCDIR)/Makefile.shlib

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp