Shared library and GCC support for SCO OpenServer.
This commit is contained in:
parent
5fdae774a1
commit
f7bfb5518d
|
@ -6,7 +6,7 @@
|
||||||
# Copyright (c) 1998, Regents of the University of California
|
# Copyright (c) 1998, Regents of the University of California
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.50 2001/04/15 03:25:07 tgl Exp $
|
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.51 2001/05/07 20:43:28 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -194,6 +194,24 @@ ifeq ($(PORTNAME), osf)
|
||||||
LINK.shared = $(LD) -shared -expect_unresolved '*'
|
LINK.shared = $(LD) -shared -expect_unresolved '*'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PORTNAME), sco)
|
||||||
|
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
||||||
|
ifndef cplusplus
|
||||||
|
ifeq ($(GCC), yes)
|
||||||
|
LINK.shared = $(CC) -shared
|
||||||
|
else
|
||||||
|
LINK.shared = $(CC) -G
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
ifeq ($(GXX), yes)
|
||||||
|
LINK.shared = $(CXX) -shared
|
||||||
|
else
|
||||||
|
LINK.shared = $(CXX) -G
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
LINK.shared += -Wl,-z,text -Wl,-h,$(soname)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(PORTNAME), svr4)
|
ifeq ($(PORTNAME), svr4)
|
||||||
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
|
||||||
LINK.shared = $(LD) -G
|
LINK.shared = $(LD) -G
|
||||||
|
|
|
@ -1,9 +1,18 @@
|
||||||
override CFLAGS += -dy
|
|
||||||
export_dynamic = -W l,-Bexport
|
|
||||||
AROPT = cr
|
AROPT = cr
|
||||||
|
export_dynamic = -Wl,-Bexport
|
||||||
|
shlib_symbolic = -Wl,-Bsymbolic
|
||||||
|
|
||||||
DLSUFFIX = .so
|
DLSUFFIX = .so
|
||||||
|
ifeq ($(GCC), yes)
|
||||||
|
CFLAGS_SL = -fpic
|
||||||
|
else
|
||||||
CFLAGS_SL = -K PIC
|
CFLAGS_SL = -K PIC
|
||||||
|
endif
|
||||||
|
ifeq ($(GXX), yes)
|
||||||
|
CXXFLAGS_SL = -fpic
|
||||||
|
else
|
||||||
|
CXXFLAGS_SL = -K PIC
|
||||||
|
endif
|
||||||
|
|
||||||
%.so: %.o
|
%.so: %.o
|
||||||
$(LD) -G -Bdynamic -o $@ $<
|
$(LD) -G -Bdynamic -o $@ $<
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
CFLAGS=
|
if test "$GCC" = yes; then
|
||||||
CC="$CC -b elf"
|
CFLAGS=-02
|
||||||
|
else
|
||||||
|
CFLAGS=-O
|
||||||
|
CC="$CC -b elf"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue