Skip to contentSkip to conversation

package/conmon: fix build with gcc 4.8

PATCH In review Fabrice Fontaine 2 participants 3 messages Mar 3, 2024 – Mar 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/conmon: fix build with gcc 4.8

Fix the following build failure with gcc 4.8 raised since the addition of the package in commit 06f50ff1bf066feb6cf6ed512113773f87c884fb:

src/conmon.c:5:2: error: #error conmon.c requires C99 or later
#error conmon.c requires C99 or later
^

Fixes 06f50ff1bf066feb6cf6ed512113773f87c884fb

- http://autobuild.buildroot.org/results/b573aceefde04435ea13dfd2a48f9c2372bde4d7

---
 package/conmon/conmon.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/conmon/conmon.mk +2 -1
index 214cb460a5..1e57786686 100644
@@ -25,7 +25,8 @@ define CONMON_CONFIGURE_CMDS
 endef
 
 define CONMON_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" \
+		CFLAGS="$(TARGET_CFLAGS) -std=c99" \
 		LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) bin/conmon
 endef
 
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix the following build failure with gcc 4.8 raised since the addition of the package in commit 06f50ff1bf066feb6cf6ed512113773f87c884fb:

Quoted 8 lines

src/conmon.c:5:2: error: #error conmon.c requires C99 or later
#error conmon.c requires C99 or later
^

Fixes 06f50ff1bf066feb6cf6ed512113773f87c884fb

- http://autobuild.buildroot.org/results/b573aceefde04435ea13dfd2a48f9c2372bde4d7

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Fabrice Fontaine
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix the following build failure with gcc 4.8 raised since the addition of the package in commit 06f50ff1bf066feb6cf6ed512113773f87c884fb:

Quoted 8 lines

src/conmon.c:5:2: error: #error conmon.c requires C99 or later
#error conmon.c requires C99 or later
^

Fixes 06f50ff1bf066feb6cf6ed512113773f87c884fb

- http://autobuild.buildroot.org/results/b573aceefde04435ea13dfd2a48f9c2372bde4d7

Committed to 2023.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot