From 752cb994bdac9aa1cdab8781bab7f58db72b1809 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Sun, 17 Oct 2021 11:21:41 -0700 Subject: fix: added libgcc as explicit dependency for ARM --- Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 668ccda..276b5d3 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ # Compiler, Linker, and Assembler CC := gcc AR := ar -AS := nasm PKG := PKG_CONFIG_PATH=lib/pkgconfig pkg-config WL_PROTO:=$(shell $(PKG) --variable=pkgdatadir wayland-protocols) @@ -17,15 +16,14 @@ OBJ_DIR := .build TST_DIR := .test # C runtime library -CINIT := $(LIB_DIR)/crt/crt1.o $(LIB_DIR)/crt/x86_64/crti.o `gcc --print-file-name=crtbeginS.o` -CFINI := `gcc --print-file-name=crtendS.o` $(LIB_DIR)/crt/x86_64/crtn.o +CINIT := $(LIB_DIR)/crt/crt1.o $(LIB_DIR)/crt/crti.o `gcc --print-file-name=crtbeginS.o` +CFINI := `gcc --print-file-name=crtendS.o` $(LIB_DIR)/crt/crtn.o # Flags, Libraries and Includes -CFLAGS := -g -march=native -fno-strict-aliasing -fwrapv -fms-extensions -Wno-microsoft-anon-tag -STATIC := -nodefaultlibs -nostartfiles -nostdinc -static -AFLAGS := -f elf64 +CFLAGS := -g -fno-strict-aliasing -fwrapv -fms-extensions -Wno-microsoft-anon-tag +STATIC := -nodefaultlibs -nostartfiles -nostdinc -nostdlib -static INCS := -I $(INC_DIR) -isystem $(INC_DIR)/vendor/libc -ELIBS := -L$(LIB_DIR) -lc +ELIBS := -L$(LIB_DIR) -lc -lgcc # Named generic rules (must be evaluated lazily) COMPILE = @echo "CC "$(@:$(OBJ_DIR)/%=%);\ -- cgit v1.2.1