Skip site navigation (1) Skip section navigation (2)

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

From: Michael Meskes <meskes(at)topsystem(dot)de>
To: darrenk(at)insightdist(dot)com (Darren King)
Cc: pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker)
Subject: Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Date: 1998-04-24 09:18:27
Message-ID: 199804240918.LAA00624@gauss.topsystem.de (view raw or flat)
Thread:
Lists: 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(at)topsystem(dot)de                    | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org                      | 52146 Wuerselen
Go SF49ers! Go Rhein Fire!             | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux!                  | Fax: (+49) 2405/4670-10

In response to

Responses

pgsql-hackers by date

Next:From: Zeugswetter Andreas SARZDate: 1998-04-24 10:28:54
Subject: Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Previous:From: Julia A.CaseDate: 1998-04-24 08:40:33
Subject: Re: [INTERFACES] Access'97 and ODBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group