source:
patches/lilo-22.8-cross_compile_x86_64-2.patch@
a28f18d
Last change on this file since a28f18d was 153aa07, checked in by , 18 years ago | |
---|---|
|
|
File size: 2.5 KB |
-
checkit
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 -Nru lilo-22.8-ori/checkit lilo-22.8/checkit
old new 58 58 59 59 echo 60 60 echo AS86 version $dev or later is required 61 as86 -v 1>foo1 2>foo261 x86_64-unknown-linux-gnu-as86 -v 1>foo1 2>foo2 62 62 A=`cat foo1 foo2 | grep version | cut -d " " -f 3` 63 63 rm -f foo1 foo2 64 64 if [ -z $A ]; then 65 echo as86 is not present65 echo x86_64-unknown-linux-gnu-as86 is not present 66 66 ret=1 67 67 else 68 68 vers_min $A $dev 69 echo as86 version $A69 echo x86_64-unknown-linux-gnu-as86 version $A 70 70 if [ $rc = 0 ]; then echo OKAY; else echo ERROR; ret=1; fi 71 71 fi 72 72 73 73 echo 74 74 echo LD86 version $dev or later is required 75 ld86 -v 1>foo1 2>foo275 x86_64-unknown-linux-gnu-ld86 -v 1>foo1 2>foo2 76 76 L=`cat foo1 foo2 | grep version | cut -d " " -f 3` 77 77 rm -f foo1 foo2 78 78 if [ -z $L ]; then 79 echo ld86 is not present79 echo x86_64-unknown-linux-gnu-ld86 is not present 80 80 ret=1 81 81 else 82 82 vers_min $L $dev 83 echo ld86 version $L83 echo x86_64-unknown-linux-gnu-ld86 version $L 84 84 if [ $rc = 0 ]; then echo OKAY; else echo ERROR; ret=1; fi 85 85 fi 86 86 -
Makefile
diff -Nru lilo-22.8-ori/Makefile lilo-22.8/Makefile
old new 101 101 cat $$ROOT/etc/lilo.defines; else echo $(CONFIG); fi ) | \ 102 102 sed 's/-D/-DLCF_/g'` 103 103 LILO=-DLILO=0xbb920890 104 KVER= `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi`105 HDM= `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi`106 DEVMAPPER= `if [ -f /usr/include/libdevmapper.h ]; then echo "-ldevmapper"; fi`104 KVER= 105 HDM= 106 DEVMAPPER= 107 107 108 108 TMP=_TmP_ 109 109 110 110 111 111 SHELL=/bin/sh 112 CC=gcc112 #CC=gcc 113 113 CPP=$(CC) -E 114 AS86= as86 -0 -a115 LD86= ld86 -0114 AS86=x86_64-unknown-linux-gnu-as86 -0 -a 115 LD86=x86_64-unknown-linux-gnu-ld86 -0 116 116 NASM=nasm 117 117 G=`cat foo1 foo2 | grep version | cut -d " " -f 3` 118 118 … … 471 471 mv tmp_make Makefile 472 472 473 473 version: common.c lilo.h common.h 474 $(CC)$(CFLAGS) -DSHS_MAIN -o version common.c474 gcc $(CFLAGS) -DSHS_MAIN -o version common.c 475 475 476 476 mkloader: temp.c 477 $(CC)$(CFLAGS) -DLILO_BINARY -o mkloader temp.c477 gcc $(CFLAGS) -DLILO_BINARY -o mkloader temp.c 478 478 479 479 tidy: 480 480 rm -f core $(LIS) *.shs *.crc $(TMP)*
Note:
See TracBrowser
for help on using the repository browser.