Source: audit
Version: 1:4.2.1-1.3
Severity: important
Tags: patch upstream
Justification: regresses architecture cross bootstrap
User: [email protected]
Usertags: ftcbfs
User: [email protected]
Usertags: rebootstrap
X-Debbugs-Cc: [email protected]

audit regressed cross compilation when loong64 support was enabled,
because the relevant generator misses tool overrides in the upstream
Makefile.am. I'm attaching a patch.

Helmut
--- audit-4.2.1.orig/lib/Makefile.am
+++ audit-4.2.1/lib/Makefile.am
@@ -151,6 +151,14 @@
 if USE_LOONGARCH64
 gen_loongarch64_tables_h_SOURCES = gen_tables.c gen_tables.h loongarch64_table.h
 gen_loongarch64_tables_h_CFLAGS = '-DTABLE_H="loongarch64_table.h"'
+$(gen_loongarch64_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
+$(gen_loongarch64_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
+$(gen_loongarch64_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+$(gen_loongarch64_tables_h_OBJECTS): LDFLAGS=$(LDFLAGS_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): LDFLAGS=$(LDFLAGS_FOR_BUILD)
 loongarch64_tables.h: gen_loongarch64_tables_h Makefile
 	./gen_loongarch64_tables_h --lowercase --i2s --s2i loongarch64_syscall > $@
 endif

Reply via email to