Re: failing to build preproc.c on solaris with sun studio - Mailing list pgsql-hackers

From Noah Misch
Subject Re: failing to build preproc.c on solaris with sun studio
Date
Msg-id 20220807032340.GE3981561@rfd.leadboat.com
Whole thread Raw
In response to Re: failing to build preproc.c on solaris with sun studio  (Andres Freund <andres@anarazel.de>)
List 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 by date:

Previous
From: Andres Freund
Date:
Subject: Re: failing to build preproc.c on solaris with sun studio
Next
From: Andres Freund
Date:
Subject: Re: Cleaning up historical portability baggage