* On 2024-09-06 at 09:56 BST, Thomas Klausner wrote:
On Tue, Sep 03, 2024 at 09:32:08PM +0200, Rhialto wrote:So possibly from gcc 12 onwards, C needs to be included in this list as well.Thanks, good detecting! Can you please add 'c' to the list for gcc12 (and newer), or probably just remove the language check altogether. Bonus points if you find out if that's need for gcc10/9/8/7 too. :)
One of the issues you'll probably run into with this is circular dependencies. It's very difficult to ensure that you don't end up requiring gcc*-libs for packages in its own bootstrap path.
I've had special handling for this in my builds for over 10 years: https://github.com/TritonDataCenter/pkgbuild/blob/master/include/gcc-libs.mkand dropped _USE_GCC_SHLIB completely in my renovation work (still in a branch) last year:
https://github.com/TritonDataCenter/pkgsrc/commit/ef6db314cbe82bd2650c7c778dfb9a1a2b638eb4This stuff is just very difficult to test due to the large number of possible setups and differences across OS, and has a very high chance of completely breaking everything. I would recommend treading carefully.
-- Jonathan Perkin - mnx.io - pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com