Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
Date: 2006-03-11
Initial Package Version: 22.7.1
Upstream Status: Not submitted, purely for cross-compiling for x86_64(-64)
Origin: Self
Description: Allows lilo-static to be built with a cross-compiler (plus
 cross as86, ld86).   

diff -Naur lilo-22.7.1-vanilla/Makefile lilo-22.7.1/Makefile
--- lilo-22.7.1-vanilla/Makefile	2005-09-17 22:36:25.000000000 +0100
+++ lilo-22.7.1/Makefile	2006-03-11 18:35:13.000000000 +0000
@@ -94,10 +94,10 @@
 
 
 SHELL=/bin/sh
-CC=gcc
+#CC=gcc
 CPP=$(CC) -E
-AS86=as86 -0 -a
-LD86=ld86 -0
+AS86=x86_64-unknown-linux-gnu-as86 -0 -a
+LD86=x86_64-unknown-linux-gnu-ld86 -0
 NASM=nasm
 
 CFLAGS=$(OPT) -Wall -g $(PCONFIG)
@@ -424,10 +424,10 @@
 		mv tmp_make Makefile
 
 version:	common.c lilo.h common.h
-		$(CC) $(CFLAGS) -DSHS_MAIN -o version common.c
+		gcc $(CFLAGS) -DSHS_MAIN -o version common.c
 
 mkloader:	temp.c
-		$(CC) $(CFLAGS) -DLILO_BINARY -o mkloader temp.c
+		gcc $(CFLAGS) -DLILO_BINARY -o mkloader temp.c
 
 tidy:
 		rm -f core $(LIS) *.shs *.crc $(TMP)*
