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

Commit0865f58

Browse files
committed
Shared library fixes for BSD44_Derived port
Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>NOTE: The following patch I was uncertain of, but applied it...will end uptesting the compile on my machine later tonight anyway, but if anyoneknows why this *shouldn't* have been done, please change it. (CC -> LD)****************** 61,68 **** ../backend/lib/dllist.o: $(MAKE) -C ../backend/lib dllist.o! libpq.so.1: $(OBJS)! $(CC) $(LDFLAGS) -shared $(OBJS) -o libpq.so.1 c.h: ../include/c.h rm -f c.h--- 66,73 ---- ../backend/lib/dllist.o: $(MAKE) -C ../backend/lib dllist.o! $(shlib): $(OBJS)! $(LD) $(LDFLAGS) -shared $(OBJS) -o $(shlib) c.h: ../include/c.h rm -f c.h
1 parentea7a26c commit0865f58

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎src/interfaces/libpq/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# 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 $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -38,6 +38,11 @@ ifdef LINUX_ELF
3838
ifeq ($(PORTNAME), linux)
3939
shlib := libpq.so.1
4040
endif
41+
ifeq ($(PORTNAME), BSD44_derived)
42+
shlib := libpq.so.1.0
43+
CFLAGS+= -fpic -DPIC
44+
LDFLAGS=-Bshareable -Bforcearchive
45+
endif
4146
endif
4247

4348
all: libpq.a$(shlib) c.h
@@ -62,7 +67,7 @@ fe-lobj.o: ../backend/fmgr.h
6267
$(MAKE) -C ../backend/lib dllist.o
6368

6469
libpq.so.1:$(OBJS)
65-
$(CC)$(LDFLAGS) -shared$(OBJS) -olibpq.so.1
70+
$(LD)$(LDFLAGS) -shared$(OBJS) -o$(shlib)
6671

6772
c.h: ../include/c.h
6873
rm -f c.h
@@ -136,7 +141,7 @@ install-libpq: libpq.a
136141
$(INSTALL)$(INSTL_LIB_OPTS) libpq.a$(DESTDIR)$(LIBDIR)/libpq.a
137142

138143
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)
140145

141146
dependdep:
142147
$(CC) -MM$(INCLUDE_OPT)*.c>depend

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp