Re: configure can't detect proper pthread flags

Поиск
Список
Период
Сортировка
От Max Filippov
Тема Re: configure can't detect proper pthread flags
Дата
Msg-id CAMo8BfL68KH4OafYPxyQH=7pnf9XVff6bXDABqBN_N47T3Nj1A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: configure can't detect proper pthread flags  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: configure can't detect proper pthread flags  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Re: configure can't detect proper pthread flags  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Fri, Mar 20, 2015 at 5:09 AM, Bruce Momjian <bruce@momjian.us> wrote:
> On Fri, Mar 20, 2015 at 04:51:55AM +0300, Max Filippov wrote:
>> xtensa-linux-gcc -o conftest -Wall -Wmissing-prototypes
>> -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
>> -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
>> -fwrapv -fexcess-precision=standard -D_LARGEFILE_SOURCE
>> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mlongcalls
>> -mtext-section-literals -Os -pthread -D_LARGEFILE_SOURCE
>> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE conftest.c
>> -lssl -lcrypto -lz -lreadline -lrt -lcrypt -ldl -lm
>>
>> and if I drop irrelevant libraries from that command its stdout+stderr
>> will probably be empty.
>>
>> But I was curious why this test is written *that* way.
>
> Threading compiles are different for every platform so the code just
> tries everything --- we didn't anticipate that adding a useless library
> would actually cause a failure.

Sorry, I must be not clear enough: why checking compiler/linker output
instead of checking their exit code or presence of produced object/
executable files?

-- 
Thanks.
-- Max



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Shapes on the regression test for polygon
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: configure can't detect proper pthread flags