summarylogtreecommitdiffstats
path: root/0001-set_std_gnu17_default.patch
blob: 0af7a5a8ee073d8d04b1262bf4f2395bf5ba7217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 67639fd226dae7335dd386a1246997d5229a9189 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Torleif=20Sk=C3=A5r?= <torleif.skaar AT gmail DOT com>
Date: Wed, 21 May 2025 02:33:37 +0200
Subject: [PATCH] configure: Set '-std=gnu17' as default due to issues with
 default C23

For more explanation, see:
https://github.com/RTimothyEdwards/magic/issues/401
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index ae0a0fc1..0f758e5e 100755
--- a/configure
+++ b/configure
@@ -9,4 +9,4 @@
 # script itself.  It also sets up CFLAGS without the default optimizer
 # flag (-O2).
 
-( CFLAGS="-g"; export CFLAGS; cd scripts ; ./configure "$@" )
+( CFLAGS="-g -std=gnu17"; export CFLAGS; cd scripts ; ./configure "$@" )
-- 
2.49.0