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

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.
Дата
Msg-id 199804240918.LAA00624@gauss.topsystem.de
обсуждение исходный текст
Ответ на linux, bsd, i386-solaris and univel shared libraries.  (darrenk@insightdist.com (Darren King))
Ответы Re: [HACKERS] linux, bsd, i386-solaris and univel shared libraries.  (Alen Zekulic <azekulic@fesb.hr>)
Список 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 по дате отправления:

Предыдущее
От: "Vadim B. Mikheev"
Дата:
Сообщение: Re: [HACKERS] AIX needs a new port maintainer.
Следующее
От: Zeugswetter Andreas SARZ
Дата:
Сообщение: Re: [HACKERS] linux, bsd, i386-solaris and univel shared librarie s.