Re: 8.0.0beta2: gcc: unrecognized option `-pthreads'

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: 8.0.0beta2: gcc: unrecognized option `-pthreads'
Дата
Msg-id 200409110218.i8B2I3M09957@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: 8.0.0beta2: gcc: unrecognized option `-pthreads'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >>> No.  The problem is that the test script just tries all options and if
> >>> it doesn't error out, it uses it.  Ideally we could test from configure
> >>> and ingnore meaningless options but we don't know how yet.
> >>
> >> Drop any options that cause the compiler to write anything on stderr.
>
> > OK, the configure test is:
>
> BTW, I had some second thoughts about this later: if the compiler
> generates warnings only for certain *combinations* of switches, it
> seems likely that a simplistic test would get things wrong.  Let's
> try this patch, but be alert for possible problems.

Ah, but we test the accumulation of flags, not just each flag in
isolation:

        LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"

so we should be fine.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.0.0beta2: gcc: unrecognized option `-pthreads'
Следующее
От: Kevin Barnard
Дата:
Сообщение: Re: What is the postgres version of mysql's "ON DUPLICATE KEY"