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

Commit8213e63

Browse files
committed
Repair BSD/OS shared library fixes.
1 parentd3fb67d commit8213e63

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

‎src/Makefile.shlib

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.40 2001/02/10 16:26:38 momjian Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.41 2001/02/10 16:51:39 petere Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -121,7 +121,8 @@ endif
121121
ifeq ($(PORTNAME), bsdi)
122122
shlib:= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
123123
ifeq ($(DLSUFFIX), .so)
124-
LINK.shared= $(LD) -shared -soname $(soname)
124+
LINK.shared= $(COMPILER) -shared -Wl,-soname,$(soname)
125+
SHLIB_LINK+= -lc
125126
endif
126127
ifeq ($(DLSUFFIX), .o)
127128
LINK.shared= shlicc -O $(LDREL)

‎src/interfaces/odbc/GNUmakefile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# GNUMakefile for psqlodbc (Postgres ODBC driver)
44
#
5-
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.11 2001/02/1015:59:16 momjian Exp $
5+
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.12 2001/02/1016:51:40 petere Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -32,16 +32,8 @@ include $(top_srcdir)/src/Makefile.shlib
3232
# Symbols must be resolved to the version in the shared library because
3333
# the driver manager (e.g., iodbc) provides some symbols with the same
3434
# names and we don't want those. (This issue is probably ELF specific.)
35-
#
36-
# BSD/OS fails with libc and crt1.o undefined symbols without this.
37-
# bjm 2001-02-09
38-
#
39-
ifneq ($(PORTNAME), bsdi)
35+
4036
LINK.shared +=$(shlib_symbolic)
41-
else
42-
LINK.shared = gcc -shared -Wl,-Bsymbolic,-soname,$(soname)
43-
SHLIB_LINK += -lc
44-
endif
4537

4638
odbc_headers = isql.h isqlext.h iodbc.h
4739
odbc_includedir =$(includedir)/iodbc

‎src/makefiles/Makefile.bsdi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ endif
1515
ifeq ($(DLSUFFIX), .so)
1616
CFLAGS_SL = -fpic
1717
export_dynamic = -export-dynamic
18-
shlib_symbolic = -Bsymbolic
18+
shlib_symbolic = -Wl,-Bsymbolic
1919
else
2020
CFLAGS_SL =
2121
endif
2222

2323
%.so: %.o
24-
$(LD) -shared -o $@ $<
24+
$(CC) -shared -o $@ $<

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp