Commit 174ac65
committed
modules/linux: Consolidate EXTRA_FLAGS, version-dependent -std=gnu11 for 6.1.8 only
Remove duplication of EXTRA_FLAGS definition across kernel versions. Define
base flags once (-fdebug-prefix-map, -gno-record-gcc-switches), then
conditionally add -std=gnu11 only for kernel 6.1.8 which requires GCC 15.1
C23 compatibility workaround. Other kernel versions (4.14.62, 4.19.139,
5.4.69, 5.10.214, 6.6.16-openpower) compile without workaround flags.
Ref: GCC 15.1.0 upgrade (PR #1991)
Signed-off-by: Thierry Laurion <insurgo@riseup.net>1 parent c8047fc commit 174ac65
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
0 commit comments