Re: failing to build preproc.c on solaris with sun studio

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: failing to build preproc.c on solaris with sun studio
Дата
Msg-id 20220807032340.GE3981561@rfd.leadboat.com
обсуждение исходный текст
Ответ на Re: failing to build preproc.c on solaris with sun studio  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Sat, Aug 06, 2022 at 08:12:54PM -0700, Andres Freund wrote:
> The "problem" in this case is that maintaining pgxs compatibility, as we'd
> discussed at pgcon, requires emitting stuff for all the @whatever@ things in
> Makefile.global.in, including with_gnu_ld. Which lead me down the rabbithole
> of trying to build on solaris, with sun studio, to see if we could just remove
> with_gnu_ld (and some others).
> 
> There's a lot of replacements that really aren't needed for pgxs, including
> with_gnu_ld (after the patch I just sent on the "baggage" thread). I tried to
> think of a way to have a 'missing' equivalent for variables filled with bogus
> contents, to trigger an error when they're used. But I don't think there's
> such a thing?

For some patterns of variable use, this works:

badvar = $(error do not use badvar)
ok:
    echo hello
bad:
    echo $(badvar)



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: failing to build preproc.c on solaris with sun studio
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Cleaning up historical portability baggage