From 9cee2a7ef5c20df8272e1e945507490c68214ca2 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Thu, 10 Dec 2020 10:01:32 +0000 Subject: [PATCH] Fix LD building git-svn-id: svn://kolibrios.org@8361 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/toolchain/binutils/ld/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/toolchain/binutils/ld/Makefile b/contrib/toolchain/binutils/ld/Makefile index 608941f900..c1c1cf95f2 100644 --- a/contrib/toolchain/binutils/ld/Makefile +++ b/contrib/toolchain/binutils/ld/Makefile @@ -1,3 +1,7 @@ +CC = kos32-gcc +LD = kos32-ld +SDK_DIR = ../../../sdk + NAME= ld-new LIB_DIR:= $(SDK_DIR)/lib @@ -18,7 +22,7 @@ MDEFS= -DDEFAULT_EMULATION='"i386pe"' -DBINDIR='"/home/autobuild/tools/win32/ MDEFS+= -DTOOLBINDIR='"/home/autobuild/tools/win32/mingw32/bin"' -DTARGET='"i686-pc-mingw32"' MDEFS+= -DTARGET_SYSTEM_ROOT='"/home/autobuild/tools/win32"' -DTARGET_SYSTEM_ROOT_RELOCATABLE -LIBS= -lbfd -liberty -lz -lgcc -lc.dll -lapp +LIBS= -lc -lbfd -liberty -lz -lgcc -lc.dll LIBPATH:= -L$(LIB_DIR) -L/home/autobuild/tools/win32/mingw32/lib @@ -54,4 +58,4 @@ ldfile.o : ldfile.c Makefile ldmain.o : ldmain.c Makefile $(CC) $(CFLAGS) $(DEFINES) $(MDEFS) $(INCLUDES) -o $@ $< - \ No newline at end of file +