| 19 Apr 2026 |
Vladimír Čunát | I believe there is, based on a quick search. | 08:46:13 |
Alyssa Ross | I've been trying to find it… | 08:46:22 |
Alyssa Ross | autoconf has internal knowledge of which flags different compilers use to set the C standard, but does not expose a public API to reuse this | 08:46:59 |
Alyssa Ross | so it would have to be hardcoded for certain compilers | 08:47:07 |
Alyssa Ross | AFAIK | 08:47:26 |
Alyssa Ross | * | 08:47:28 |
Vladimír Čunát | I saw AC_PROG_CC_C99 but apparently it's deprecated? | 08:48:14 |
Alyssa Ross | yeah | 08:48:18 |
Alyssa Ross | and the replacement will always use C23 | 08:48:23 |
Alyssa Ross | if available | 08:48:25 |
Vladimír Čunát | I don't actively use autotools, as it's not very pleasant. | 08:48:44 |
Alyssa Ross | so I think, as much as it pains me, I cannot direct people to fix this upstream, because there's no portable way to (that works with e.g. MSVC as well, which upstreams might care about) | 08:48:58 |
Vladimír Čunát | * I don't actively use autotools, as it's not very pleasant. So I don't know it from that side. | 08:49:01 |
Alyssa Ross | what a horrible change. I was sympathetic when I thought it was just changing the default… | 08:51:57 |
Alyssa Ross | so, vcunat, do you want me to open an issue with instructions asking for help from darwin-maintainers? | 09:01:56 |
Vladimír Čunát | Sure, I'd like these resolved somehow, at least the more important packages. | 09:02:38 |
Vladimír Čunát | I don't know what's the best way. Sometimes passing -std=foo might work, but I often see that fed into C++ case as well which fails. Sometimes I just added autoconf269 into inputs. | 09:03:37 |
Alyssa Ross | Passing -std how? | 09:04:01 |
Alyssa Ross | via NIX_CFLAGS_COMPILE? | 09:04:07 |
Vladimír Čunát | That's what I tried, but it usually has that problem. | 09:04:33 |
Alyssa Ross | Let me see… | 09:04:42 |
Vladimír Čunát | I mean I tried I think with 8ab9645b5af and 6e1fd320788. | 09:05:27 |
Alyssa Ross | Hmm yes I've reproduced | 09:10:09 |
Alyssa Ross | I can fix db for Linux LLVM with "CFLAGS=-std=gnu17" "CXXFLAGS=" in configureFlags. | 09:16:17 |
Alyssa Ross | If you don't pass CXXFLAGS it defaults it to CFLAGS. | 09:16:31 |
Alyssa Ross | So I think I'll recommend people just always do that? | 09:23:47 |
Alyssa Ross | Or, well, I'll tell them to always do CFLAGS in configureFlags and CXXFLAGS as well if necessary. | 09:24:13 |
Alyssa Ross | https://github.com/NixOS/nixpkgs/issues/511329 | 09:34:10 |
Alyssa Ross | 92 people pinged | 09:34:27 |
Alyssa Ross | feel free to edit | 09:35:16 |