LDFLAGS vs. shared libraries

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема LDFLAGS vs. shared libraries
Дата
Msg-id 412221D0.3070001@opencloud.com
обсуждение исходный текст
Ответы Re: LDFLAGS vs. shared libraries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I'm trying to build 7.4.3 under Solaris 9 with gcc and static linking of 
libgcc. This requires passing '-static-libgcc' when linking both 
binaries and shared libraries.

Passing 'LDFLAGS=-static-libgcc' to configure only partially works. 
Binaries are correctly linked with that flag, but shared libraries 
appear to ignore everything but -L options in LDFLAGS when linking (see 
src/Makefile.shlib). The 8.0 tree appears to do the same.

I've changed Makefile.shlib to add all of LDFLAGS to SHLIB_LINK for now, 
but I'm assuming there's a reason that it was only using -L flags 
originally. Is there a Right Way to pass extra options for 
shared-library linking?

-O


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: tablespace and sequences?
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: tablespace and sequences?