File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
#
9
9
# IDENTIFICATION
10
- # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.22 1996/12/10 07:05:09 bryanh Exp $
10
+ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.23 1997/01/05 23:52:21 scrappy Exp $
11
11
#
12
12
# -------------------------------------------------------------------------
13
13
@@ -38,6 +38,11 @@ ifdef LINUX_ELF
38
38
ifeq ($(PORTNAME ) , linux)
39
39
shlib := libpq.so.1
40
40
endif
41
+ ifeq ($(PORTNAME ) , BSD44_derived)
42
+ shlib := libpq.so.1.0
43
+ CFLAGS+ = -fpic -DPIC
44
+ LDFLAGS =-Bshareable -Bforcearchive
45
+ endif
41
46
endif
42
47
43
48
all : libpq.a $(shlib ) c.h
@@ -62,7 +67,7 @@ fe-lobj.o: ../backend/fmgr.h
62
67
$(MAKE ) -C ../backend/lib dllist.o
63
68
64
69
libpq.so.1 : $(OBJS )
65
- $(CC ) $(LDFLAGS ) -shared $(OBJS ) -o libpq.so.1
70
+ $(LD ) $(LDFLAGS ) -shared $(OBJS ) -o $( shlib )
66
71
67
72
c.h : ../include/c.h
68
73
rm -f c.h
@@ -136,7 +141,7 @@ install-libpq: libpq.a
136
141
$(INSTALL ) $(INSTL_LIB_OPTS ) libpq.a $(DESTDIR )$(LIBDIR ) /libpq.a
137
142
138
143
install-shlib : libpq.so.1
139
- $(INSTALL ) $(INSTL_LIB_OPTS ) libpq.so.1 $(DESTDIR )$(LIBDIR ) /libpq.so.1
144
+ $(INSTALL ) $(INSTL_LIB_OPTS ) $( shlib ) $(DESTDIR )$(LIBDIR ) /$( shlib )
140
145
141
146
depend dep :
142
147
$(CC ) -MM $(INCLUDE_OPT ) * .c > depend
You can’t perform that action at this time.
0 commit comments