Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries. - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Date
Msg-id 199804240918.LAA00624@gauss.topsystem.de
Whole thread Raw
In response to linux, bsd, i386-solaris and univel shared libraries.  (darrenk@insightdist.com (Darren King))
Responses Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
List pgsql-hackers
Darren King writes:
>
> For the linux, bsd, i386-solaris and univel ports, ...
>
> If I were to try to make foo$(DLSUFFIX) from bar.c and bah.c, I would
> think the general sequence of events would be:
>
> 1. $(CC) $(CFLAGS_SL) -o bar.o bar.c
> 2. $(CC) $(CFLAGS_SL) -o bah.o bah.c
> 3. $(LD) $(LDFLAGS_SL) -r -o foo.o bar.o bah.o
> 4. $(LD) $(LDFLAGS_SL) -o foo$(DLSUFFIX) foo.o
>
> Could someone for each port tell me what $(CFLAGS_SL) and $(LDFLAGS_SL)
> are needed for each of these steps?

Linux:

CFLAGS_SL: -fpic
LDFLAGS_SL: -shared -soname foo$(DLSUFFIX_WITH_MAJOR_VERSION_NUMBER)

I hope I didn't miss anything.

Michael

--
Dr. Michael Meskes, Project-Manager    | topsystem Systemhaus GmbH
meskes@topsystem.de                    | Europark A2, Adenauerstr. 20
meskes@debian.org                      | 52146 Wuerselen
Go SF49ers! Go Rhein Fire!             | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux!                  | Fax: (+49) 2405/4670-10

pgsql-hackers by date:

Previous
From: "Vadim B. Mikheev"
Date:
Subject: Re: [HACKERS] AIX needs a new port maintainer.
Next
From: Zeugswetter Andreas SARZ
Date:
Subject: Re: [HACKERS] linux, bsd, i386-solaris and univel shared librarie s.