From: John Hodge Date: Mon, 22 Jul 2013 12:29:54 +0000 (+0800) Subject: Usermode/ld-acess - Fixed errors when compiling stublib for native X-Git-Tag: rel0.15~338 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=09592a0931d9df3eb450ba5029121df3f3fcf787;p=tpg%2Facess2.git Usermode/ld-acess - Fixed errors when compiling stublib for native --- 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