Re: shared libs on sco how?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Arno A(dot) Karner" <karner(at)tnss(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: shared libs on sco how?
Date: 2000-12-12 17:14:07
Message-ID: Pine.LNX.4.30.0012121758580.1538-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Arno A. Karner writes:

> when i compile on linux i get shared libs, on sco with udk, or sdk just
> get static libs
> can some on point me to the config files to hack to get both static, and
> shared libs

Try the patch below. I don't actually have SCO, but it's what I
constructed from the documentation.

diff -cr postgresql-7.0.3.orig/src/Makefile.shlib postgresql-7.0.3/src/Makefile.shlib
*** postgresql-7.0.3.orig/src/Makefile.shlib Tue May 16 22:48:48 2000
--- postgresql-7.0.3/src/Makefile.shlib Tue Dec 12 17:51:16 2000
***************
*** 207,212 ****
--- 207,220 ----
shlib := $(NAME)$(DLSUFFIX)
endif

+ ifeq ($(PORTNAME), sco)
+ install-shlib-dep := install-shlib
+ shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+ LDFLAGS_SL := -G -z text
+ CFLAGS += $(CFLAGS_SL)
+ endif
+
+
# Default target definition. Note shlib is empty if not building a shlib.

all: lib$(NAME).a $(shlib)

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2000-12-12 18:10:23 Re: Fwd: Re: HELP! foreign eys & inheritance
Previous Message Bruce Momjian 2000-12-12 17:13:34 Bug in FOREIGN KEY