From ff3eda68ceb2e2bb8f48e3faceb96076c3e85c20 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 31 Aug 2023 23:02:35 +1000 Subject: [PATCH] Set LLONG_MAX for C89 test. If we don't have LLONG_MAX, configure will figure out that it can get it by setting -std=gnu99, at which point we won't be testing C89 any more. To avoid this, feed it in via CFLAGS. --- .github/configs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/configs b/.github/configs index 66cb2d0e8..c7d6a55ab 100755 --- a/.github/configs +++ b/.github/configs @@ -30,6 +30,13 @@ case "$config" in default|sol64) ;; c89) + # If we don't have LLONG_MAX, configure will figure out that it can + # get it by setting -std=gnu99, at which point we won't be testing + # C89 any more. To avoid this, feed it in via CFLAGS. + llong_max=`gcc -E -dM -