From ebcd82198f2c84efddf82c7be9b0782b4180ce93 Mon Sep 17 00:00:00 2001 From: Daniel Palmer Date: Tue, 11 Mar 2025 19:13:01 +0900 Subject: [PATCH] package/prboom: Fix big endian fix up The hack to force big endian support when building for a big endian machine doesn't work as there is some whitespace between "#" and "undef" in config.h. Add a wildcard between those two so that the target line matches and the replacement is done. Allows me to play DOOM on my LC475. Signed-off-by: Daniel Palmer Signed-off-by: Peter Korsgaard --- package/prboom/prboom.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/prboom/prboom.mk b/package/prboom/prboom.mk index c1ba05ff70..fc440e5cf8 100644 --- a/package/prboom/prboom.mk +++ b/package/prboom/prboom.mk @@ -40,7 +40,7 @@ PRBOOM_CONF_OPTS = \ # endianness detection isn't used when cross compiling define PRBOOM_BIG_ENDIAN_FIXUP - $(SED) 's,.*#undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' \ + $(SED) 's,.*#.*undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' \ $(PRBOOM_DIR)/config.h endef