]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
flashrom: Fix build against glibc >= 2.43
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Jan 2026 16:45:07 +0000 (16:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Jan 2026 11:29:24 +0000 (11:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/flashrom

index 6f1aa731f6ad485c5b77206013ae0646fe09c1cb..f87c42bf9cd9d210b098554747da01e12911725b 100644 (file)
@@ -82,6 +82,7 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && sed -i 's/param_pos = strstr/param_pos = (char *)strstr/' flashrom.c
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install PREFIX=/usr
        @rm -rf $(DIR_APP)