Re: Building zsh/db/gdbm on MacOS Sequoia

Bart Schaefer <[email protected]> Mon, 29 Jun 2026 11:03:10 -0700
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7aYuu-VDfcJvBTR0XiMAukbqCKU6ok0sOTR3_yd5DYDmg@mail.gmail.com>
On Mon, Jun 29, 2026 at 10:43 AM Daniel Shahaf <[email protected]> wrote:
>
> Separately, I've noticed patch replaces $LDFLAGS rather than prepend
> to it, as it does with $CPPFLAGS.  That seems like it might be
> unintentional?

Not exactly unintentional but seemed unnecessary when looking through
some other bits of configure.  However, I didn't consider that LDFLAGS
might be passed in from the configure arguments, so it probably should
copy it.

Related, the $PCRE_CONFIG usage not only updates CPPFLAGS but also
injects a -L flag into $LIBS, which makes the behavior of
--enable-pcre affect unrelated modules/libraries that might have been
installed the same way -- e.g., removing --enable-pcre changes the
ncurses variant that gets chosen (Xcode instead of ports).