source: patches/lilo-22.7.1-cross_compile_x86_64-1.patch@ e94048f

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e94048f was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[69cde8d]1Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
2Date: 2006-03-11
3Initial Package Version: 22.7.1
4Upstream Status: Not submitted, purely for cross-compiling for x86_64(-64)
5Origin: Self
6Description: Allows lilo-static to be built with a cross-compiler (plus
7 cross as86, ld86).
8
9diff -Naur lilo-22.7.1-vanilla/Makefile lilo-22.7.1/Makefile
10--- lilo-22.7.1-vanilla/Makefile 2005-09-17 22:36:25.000000000 +0100
11+++ lilo-22.7.1/Makefile 2006-03-11 18:35:13.000000000 +0000
12@@ -94,10 +94,10 @@
13
14
15 SHELL=/bin/sh
16-CC=gcc
17+#CC=gcc
18 CPP=$(CC) -E
19-AS86=as86 -0 -a
20-LD86=ld86 -0
21+AS86=x86_64-unknown-linux-gnu-as86 -0 -a
22+LD86=x86_64-unknown-linux-gnu-ld86 -0
23 NASM=nasm
24
25 CFLAGS=$(OPT) -Wall -g $(PCONFIG)
26@@ -424,10 +424,10 @@
27 mv tmp_make Makefile
28
29 version: common.c lilo.h common.h
30- $(CC) $(CFLAGS) -DSHS_MAIN -o version common.c
31+ gcc $(CFLAGS) -DSHS_MAIN -o version common.c
32
33 mkloader: temp.c
34- $(CC) $(CFLAGS) -DLILO_BINARY -o mkloader temp.c
35+ gcc $(CFLAGS) -DLILO_BINARY -o mkloader temp.c
36
37 tidy:
38 rm -f core $(LIS) *.shs *.crc $(TMP)*
Note: See TracBrowser for help on using the repository browser.