pkgsrc-Users archive

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

Re: Resources for getting started.



"Greg A. Woods" <woods%planix.ca@localhost> writes:

> At Fri, 14 Jun 2024 17:04:22 +1200, Mark Davies <mark%ecs.vuw.ac.nz@localhost> wrote:
> Subject: Re: Resources for getting started.
>>
>> But ignore the
>> "-Wno-implicit-function-declaration", I
>> had to add that to deal with gcc14 in the
>> latest Arch.
>
> This is a case where I think, if I'm not mistaken, the better option is
> to set FORCE_C_STD= (and maybe also FORCE_CXX_STD=) to whatever
> standard(s) the package's code is actually currently written to conform
> to.

This is all messy.

If a program is written to a certain standard (as it should be) then
that will be clear from the README.  It should probe the compiler for
accepting --std=c++NN and then add that to CXXFLAGS.

FORCE_CXX_STD is for adding that via the wrappers for programs that are
deficient in setting it themselves (perhaps beause the upstream author
assumed that everything was like their local computer).

So yes, if the upstream is deficient this is needed, but it's not really
an approach fo rwarnings.


Home | Main Index | Thread Index | Old Index