Skip to content

Commit d0a5f6f

Browse files
committed
Fix host-m4 build in new systems
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 49cc522 commit d0a5f6f

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Locally calculated after checking pgp signature
2+
sha256 63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96 m4-1.4.19.tar.xz
3+
# License files, locally calculated
4+
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYING
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
################################################################################
2+
#
3+
# m4
4+
#
5+
################################################################################
6+
7+
M4_VERSION = 1.4.19
8+
M4_SOURCE = m4-$(M4_VERSION).tar.xz
9+
M4_SITE = $(BR2_GNU_MIRROR)/m4
10+
M4_LICENSE = GPL-3.0+
11+
M4_LICENSE_FILES = COPYING
12+
13+
# gcc-15 defaults to -std=gnu23 which is incorrectly detected and
14+
# generates build failures in the gnulib copy included in
15+
# m4-1.4.19. We workaround this by forcing the previous gcc default
16+
# standard, which is -std=gnu17 only when host gcc is >= 15. This
17+
# workaround can be removed when m4 will be updated to a version
18+
# including a fix for gcc-15.
19+
ifeq ($(BR2_HOST_GCC_AT_LEAST_11),y)
20+
HOST_M4_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -std=gnu17"
21+
endif
22+
23+
$(eval $(host-autotools-package))

0 commit comments

Comments
 (0)