File 0021-linux-Build-with-host-gcc.patch of Package syslinux
From 6c5f9f0494db48ddc50b0fbb2aa2091ce77a0ce6 Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Sun, 22 Oct 2023 20:41:23 +0200
Subject: [PATCH 21/22] linux: Build with host gcc
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
linux/Makefile | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/linux/Makefile b/linux/Makefile
index 571b014a..8aeaa7bb 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -15,6 +15,7 @@
##
include $(MAKEDIR)/syslinux.mk
+include $(MAKEDIR)/build-host.mk
OPTFLAGS = -g -Os
INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libinstaller
@@ -53,7 +54,7 @@ spotless: clean
installer: syslinux syslinux-nomtools
syslinux: $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC_FOR_BUILD) $(LDFLAGS) -o $@ $^
syslinux-nomtools: syslinux
ln -f $< $@
@@ -61,11 +62,4 @@ syslinux-nomtools: syslinux
strip:
$(STRIP) syslinux syslinux-nomtools
-%.o: %.c
- $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
-%.i: %.c
- $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
-%.s: %.c
- $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
-
-include .*.d
--
2.42.0