Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 26d5a31

Browse files
committed
Add bsdi shared library support.
1 parent 3408635 commit 26d5a31

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

src/interfaces/libpgtcl/Makefile.in

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.17 1998/06/15 21:01:46 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.18 1998/06/16 03:17:47 momjian Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -49,6 +49,16 @@ ifeq ($(PORTNAME), bsd)
4949
endif
5050
endif
5151

52+
ifeq ($(PORTNAME), bsdi)
53+
ifdef BSD_SHLIB
54+
install-shlib-dep := install-shlib
55+
shlib := libpgtcl.o
56+
LD := shlicc
57+
LDFLAGS_SL += -O -r
58+
CFLAGS += $(CFLAGS_SL)
59+
endif
60+
endif
61+
5262
ifeq ($(PORTNAME), solaris_i386)
5363
install-shlib-dep := install-shlib
5464
shlib := libpgtcl.so.1

src/interfaces/libpq/Makefile.in

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.20 1998/06/15 21:01:47 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.21 1998/06/16 03:17:47 momjian Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -31,12 +31,14 @@ OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
3131
# Shared library stuff
3232
shlib :=
3333
install-shlib-dep :=
34+
3435
ifeq ($(PORTNAME), linux_i386)
3536
install-shlib-dep := install-shlib
3637
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
3738
LDFLAGS_SL = -shared -soname libpq.so.$(SO_MAJOR_VERSION)
3839
CFLAGS += $(CFLAGS_SL)
3940
endif
41+
4042
ifeq ($(PORTNAME), bsd)
4143
ifdef BSD_SHLIB
4244
install-shlib-dep := install-shlib
@@ -45,24 +47,38 @@ ifeq ($(PORTNAME), bsd)
4547
CFLAGS += $(CFLAGS_SL)
4648
endif
4749
endif
50+
51+
ifeq ($(PORTNAME), bsdi)
52+
ifdef BSD_SHLIB
53+
install-shlib-dep := install-shlib
54+
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
55+
LD=shlicc
56+
LDFLAGS_SL = -r -O
57+
CFLAGS += $(CFLAGS_SL)
58+
endif
59+
endif
60+
4861
ifeq ($(PORTNAME), solaris_i386)
4962
install-shlib-dep := install-shlib
5063
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
5164
LDFLAGS_SL = -G -z text
5265
CFLAGS += $(CFLAGS_SL)
5366
endif
67+
5468
ifeq ($(PORTNAME), solaris_sparc)
5569
install-shlib-dep := install-shlib
5670
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
5771
LDFLAGS_SL = -G
5872
CFLAGS += $(CFLAGS_SL)
5973
endif
74+
6075
ifeq ($(PORTNAME), univel)
6176
install-shlib-dep := install-shlib
6277
shlib := libpq.so.1
6378
LDFLAGS_SL = -G -z text
6479
CFLAGS += $(CFLAGS_SL)
6580
endif
81+
6682
ifeq ($(PORTNAME), hpux)
6783
install-shlib-dep := install-shlib
6884
shlib := libpq.sl

0 commit comments

Comments
 (0)