Ticket #51863: patch-c-Mf-ta6osx.diff

File patch-c-Mf-ta6osx.diff, 951 bytes (added by mohd-akram (Mohamed Akram), 8 years ago)
  • c/Mf-ta6osx

    old new  
    1717Cpu = X86_64
    1818
    1919mdclib = -liconv -lm -lncurses
    20 C = gcc ${CPPFLAGS} -m64 -Wpointer-arith -Wall -Wextra -Werror -O2 -I/opt/X11/include/ ${CFLAGS}
     20C = ${CC} ${CPPFLAGS} -m64 -Wpointer-arith -Wall -Wextra -Werror -O2 ${CFLAGS}
    2121o = o
    2222mdsrc = i3le.c
    2323mdobj = i3le.o
     
    2626.SUFFIXES: .c .o
    2727
    2828.c.o:
    29         $C -c -D${Cpu} -I${Include} -I${ZlibInclude} $*.c
     29        $C -c -D${Cpu} -I${Include} $*.c
    3030
    3131include Mf-base
    3232
    33 ${Kernel}: ${kernelobj} ../zlib/libz.a
    34         ld -r -o ${Kernel} ${kernelobj} ../zlib/libz.a
     33${Kernel}: ${kernelobj}
     34        $C -static -nostdlib -o ${Kernel} ${kernelobj} ${LDFLAGS} -lz -Wl,-r
    3535
    3636${Scheme}: ${Kernel} ${Main}
    3737        $C -o ${Scheme} ${Kernel} ${Main} ${mdclib} ${LDFLAGS}
    38 
    39 ${ZlibInclude}/zlib.h ${ZlibInclude}/zconf.h ../zlib/libz.a:
    40         (cd ../zlib; CFLAGS=-m64 ./configure --64)
    41         (cd ../zlib; make)