From e10f5ff7d954d8670a1f6e441de9819f13f5a7a7 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Wed, 9 Dec 2020 07:54:21 +0000 Subject: [PATCH] Fix bfd Makefile git-svn-id: svn://kolibrios.org@8351 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/toolchain/binutils/bfd/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/contrib/toolchain/binutils/bfd/Makefile b/contrib/toolchain/binutils/bfd/Makefile index 13e4f59bdc..f1339da33d 100644 --- a/contrib/toolchain/binutils/bfd/Makefile +++ b/contrib/toolchain/binutils/bfd/Makefile @@ -1,3 +1,7 @@ +CC = kos32-gcc +LD = kos32-ld +SDK_DIR = ../../../sdk + CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields @@ -15,7 +19,8 @@ SRCS = \ archive.c archures.c bfd.c bfdio.c \ binary.c cache.c coff-bfd.c coffgen.c cofflink.c \ compress.c corefile.c cpu-i386.c \ - dwarf1.c dwarf2.c elf.c elf32.c \ +# dwarf1.c dwarf2.c elf.c elf32.c \ + dwarf1.c elf.c elf32.c \ elf32-gen.c elf32-i386.c elf-attrs.c \ elf-eh-frame.c elf-ifunc.c elflink.c \ elf-nacl.c elf-strtab.c elf-vxworks.c \ @@ -32,7 +37,7 @@ OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))) all: libbfd.a -libbfd.a : $(OBJS) MAkefile +libbfd.a : $(OBJS) Makefile $(AR) crs libbfd.a $(OBJS) mv -f libbfd.a $(SDK_DIR)/lib @@ -48,4 +53,4 @@ targets.o : targets.c Makefile archures.o : archures.c Makefile $(CC) $(CFLAGS) $(DEFINES) $(TDEFS) $(INCLUDES) -o $@ $< - \ No newline at end of file +