From 09592a0931d9df3eb450ba5029121df3f3fcf787 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 22 Jul 2013 20:29:54 +0800 Subject: [PATCH] Usermode/ld-acess - Fixed errors when compiling stublib for native --- Usermode/Libraries/ld-acess.so_src/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Usermode/Libraries/ld-acess.so_src/Makefile b/Usermode/Libraries/ld-acess.so_src/Makefile index 07bebfb8..b4fa2483 100644 --- a/Usermode/Libraries/ld-acess.so_src/Makefile +++ b/Usermode/Libraries/ld-acess.so_src/Makefile @@ -13,13 +13,14 @@ INCFILES := sys/sys.h CFLAGS = -g -Wall -fno-builtin -fno-stack-protector -fPIC # -fno-leading-underscore -CFLAGS += $(CPPFLAGS) -Werror +CFLAGS += $(CPPFLAGS) LDFLAGS = -g -T arch/$(ARCHDIR).ld -Map map.txt --export-dynamic ifeq ($(ARCH),native) XBIN := $(addprefix $(OUTPUTDIR)Libs/,$(EXTRABIN)) $(XBIN): obj-$(ARCH)/_stublib.o all: $(XBIN) +CFLAGS += -ffreestanding LDFLAGS := BIN := OBJ := @@ -28,12 +29,10 @@ endif include ../Makefile.tpl # create libld-acess.so -ifneq ($(ARCH),native) $(_XBIN): $(_OBJPREFIX)_stublib.o @echo [LD] -o -shared libld-acess.so - $(LD) -shared -o $@ $< $(LDFLAGS) + $(LD) -shared -o $@ $< # @$(LD) $(LDFLAGS) -o $@ $(OBJ) -endif # Override .ao to look in the object prefix for the source -- 2.20.1