r1443 - trunk/lilo

ken at linuxfromscratch.org ken at linuxfromscratch.org
Sat Mar 11 17:09:30 PST 2006


Author: ken
Date: 2006-03-11 18:09:29 -0700 (Sat, 11 Mar 2006)
New Revision: 1443

Added:
   trunk/lilo/lilo-22.7.1-cross_compile_x86_64-1.patch
Log:
Allow lilo to be cross-compiled for x86_64-64

Added: trunk/lilo/lilo-22.7.1-cross_compile_x86_64-1.patch
===================================================================
--- trunk/lilo/lilo-22.7.1-cross_compile_x86_64-1.patch	                        (rev 0)
+++ trunk/lilo/lilo-22.7.1-cross_compile_x86_64-1.patch	2006-03-12 01:09:29 UTC (rev 1443)
@@ -0,0 +1,38 @@
+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)*




More information about the patches mailing list