Fixed Makefile.kos32 in TCC (New path to ld script)

git-svn-id: svn://kolibrios.org@8273 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
superturbocat2001 2020-11-28 19:43:51 +00:00
parent dbc1c764b1
commit 2f517f2ecb

View File

@ -7,13 +7,13 @@ SDK_DIR:= $(abspath ../../../../../contrib/sdk)
#LDFLAGS = -static -nostdlib -T $(SDK_DIR)/sources/newlib/static.lds
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/lib/app-dynamic.lds \
LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds \
--image-base 0
CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32
INCLUDES= -I $(SDK_DIR)/sources/newlib/libc/include
LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib -L $(LIB_DIR)
SOURCES = tcc.c \
libtcc.c \
@ -32,3 +32,9 @@ tcc: $(OBJECTS)
%.o : %.c $(SOURCES)
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
install:
kpack tcc
cp tcc ../bin/tcc
clean:
rm -f tcc *.o