source: patches/lilo-22.7.3-cross_compile_x86_64-1.patch@ a64a245

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a64a245 was f74ae22, checked in by Jim Gifford <clfs@…>, 18 years ago

Updated Patches

  • Property mode set to 100644
File size: 1.0 KB
  • lilo-22.7.

    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
    old new  
    9494
    9595
    9696SHELL=/bin/sh
    97 CC=gcc
     97#CC=gcc
    9898CPP=$(CC) -E
    99 AS86=as86 -0 -a
    100 LD86=ld86 -0
     99AS86=x86_64-unknown-linux-gnu-as86 -0 -a
     100LD86=x86_64-unknown-linux-gnu-ld86 -0
    101101NASM=nasm
    102102
    103103CFLAGS=$(OPT) -Wall -g $(PCONFIG)
     
    424424                mv tmp_make Makefile
    425425
    426426version:        common.c lilo.h common.h
    427                 $(CC) $(CFLAGS) -DSHS_MAIN -o version common.c
     427                gcc $(CFLAGS) -DSHS_MAIN -o version common.c
    428428
    429429mkloader:       temp.c
    430                 $(CC) $(CFLAGS) -DLILO_BINARY -o mkloader temp.c
     430                gcc $(CFLAGS) -DLILO_BINARY -o mkloader temp.c
    431431
    432432tidy:
    433433                rm -f core $(LIS) *.shs *.crc $(TMP)*
Note: See TracBrowser for help on using the repository browser.