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

Commitf7bfb55

Browse files
committed
Shared library and GCC support for SCO OpenServer.
1 parent5fdae77 commitf7bfb55

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

‎src/Makefile.shlib

Lines changed: 19 additions & 1 deletion
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.50 2001/04/15 03:25:07 tgl Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.51 2001/05/07 20:43:28 petere Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -194,6 +194,24 @@ ifeq ($(PORTNAME), osf)
194194
LINK.shared= $(LD) -shared -expect_unresolved '*'
195195
endif
196196

197+
ifeq ($(PORTNAME), sco)
198+
shlib:= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
199+
ifndef cplusplus
200+
ifeq ($(GCC), yes)
201+
LINK.shared= $(CC) -shared
202+
else
203+
LINK.shared= $(CC) -G
204+
endif
205+
else
206+
ifeq ($(GXX), yes)
207+
LINK.shared= $(CXX) -shared
208+
else
209+
LINK.shared= $(CXX) -G
210+
endif
211+
endif
212+
LINK.shared+= -Wl,-z,text -Wl,-h,$(soname)
213+
endif
214+
197215
ifeq ($(PORTNAME), svr4)
198216
shlib:= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
199217
LINK.shared= $(LD) -G

‎src/makefiles/Makefile.sco

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
overrideCFLAGS+=-dy
2-
export_dynamic = -Wl,-Bexport
31
AROPT = cr
2+
export_dynamic = -Wl,-Bexport
3+
shlib_symbolic = -Wl,-Bsymbolic
44

55
DLSUFFIX =.so
6+
ifeq ($(GCC),yes)
7+
CFLAGS_SL =-fpic
8+
else
69
CFLAGS_SL =-K PIC
10+
endif
11+
ifeq ($(GXX),yes)
12+
CXXFLAGS_SL =-fpic
13+
else
14+
CXXFLAGS_SL =-K PIC
15+
endif
716

817
%.so:%.o
918
$(LD)-G-Bdynamic -o $@ $<

‎src/template/sco

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
CFLAGS=
2-
CC="$CC -b elf"
1+
if test "$GCC" = yes; then
2+
CFLAGS=-02
3+
else
4+
CFLAGS=-O
5+
CC="$CC -b elf"
6+
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp