Fix LD building

git-svn-id: svn://kolibrios.org@8361 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack 2020-12-10 10:01:32 +00:00
parent 368852fac9
commit 9cee2a7ef5

View File

@ -1,3 +1,7 @@
CC = kos32-gcc
LD = kos32-ld
SDK_DIR = ../../../sdk
NAME= ld-new NAME= ld-new
LIB_DIR:= $(SDK_DIR)/lib 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+= -DTOOLBINDIR='"/home/autobuild/tools/win32/mingw32/bin"' -DTARGET='"i686-pc-mingw32"'
MDEFS+= -DTARGET_SYSTEM_ROOT='"/home/autobuild/tools/win32"' -DTARGET_SYSTEM_ROOT_RELOCATABLE 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 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 ldmain.o : ldmain.c Makefile
$(CC) $(CFLAGS) $(DEFINES) $(MDEFS) $(INCLUDES) -o $@ $< $(CC) $(CFLAGS) $(DEFINES) $(MDEFS) $(INCLUDES) -o $@ $<