pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/sysutils/nnn



On Tue, Jun 23, 2020 at 11:32:30PM +0000, Sijmen J. Mulder wrote:
> GCC doesn't expand alloca() to __builtin_alloca() in standards mode
> (-std=...) so explicitly define it as such to fix breakage on platforms
> that don't seem to supply it otherwise, like NetBSD 9 on arm64.

You can do this without patching in ifdefs, e.g.

BUILDLINK_TRANSFORM+=   opt:-std=c++11:-std=gnu++11 # alloca



Home | Main Index | Thread Index | Old Index