X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2FMakefile;h=72538379f47c0e1b39788ff9d576ffee560c71af;hb=d7dcea0e5a8df0f479e99f168a10b9a9535c7ad6;hp=0e62c53aa2f648778b7defdf44144023f070df6f;hpb=2f3e82a7b2847e6ff7d65e73295bf3d6469236ab;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/Makefile b/Usermode/Libraries/libc++.so_src/Makefile index 0e62c53a..72538379 100644 --- a/Usermode/Libraries/libc++.so_src/Makefile +++ b/Usermode/Libraries/libc++.so_src/Makefile @@ -7,15 +7,22 @@ CPPFLAGS += CFLAGS += -Wall -Werror -Wextra CXXFLAGS += -Wall -Werror -Wextra ASFLAGS += -LDFLAGS += -Map map.txt -lc +LDFLAGS += -nostdlib +PRELINK := $(CRTI) $(CRTBEGINS) $(CRT0S) +LIBS += -lc $(LIBGCC_PATH) $(CRTENDS) $(CRTN) +USE_CXX_LINK := yes OBJ = misc.o new.o guard.o cxxabi.o typeinfo.o -OBJ += string.o -OBJ += exceptions.o exception_handling.o +OBJ += string.o mutex.o +OBJ += exceptions.o exception_handling.o system_error.o +OBJ += gxx_personality.o +ifeq ($(ARCHDIR),native) +# - Include libgcc_eh (separate in linux), and the linux libc (space avoids hack in Makefile.tpl) +LIBS += -lgcc_eh -l c +endif DEPFILES := $(OBJ:%.o=%.d) BIN = libc++.so ifeq ($(ARCHDIR),native) - OBJ := $(filter-out heap.o,$(OBJ)) BIN = libc++_acess.so endif