Re: -fPIC

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: -fPIC
Дата
Msg-id 87u0gr2i9h.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: -fPIC  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: -fPIC  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:

> > The reason for -fpic vs -fPIC (on the machines where it makes any
> > difference at all) is that the former is faster.
> 
> I don't doubt that, but out of curiosity, considering that everyone else 
> is using libtool, and libtool always uses -fPIC, what kind of impact 
> does this *really* have?

Incidentally, Debian uses -fPIC as a matter of policy everywhere too. I think
the problem is that it's hard to know in advance whether -fpic is going to
cause a problem and mixing -fpic and -fPIC libraries is a problem. So it's
safer to just compile all the libraries with -fPIC.

-- 
greg



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Spinlocks, yet again: analysis and proposed patches
Следующее
От: huaxin zhang
Дата:
Сообщение: counting disk access from index seek operation -- how to?