Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Michael Meskes <meskes@topsystem.de>
From: Michael Meskes <meskes@topsystem.de>
To: darrenk@insightdist.com (Darren King)
Cc: pgsql-hackers@postgresql.org (PostgreSQL Hacker)
Date: 1998-04-24T09:18:27Z
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@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