diff options
author | Nicholas <nbnoll@eml.cc> | 2021-10-17 11:21:41 -0700 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-10-17 11:21:41 -0700 |
commit | 752cb994bdac9aa1cdab8781bab7f58db72b1809 (patch) | |
tree | d17158f3b1e44e5258a155a1fc30307905c2c10a /Makefile | |
parent | 06cdf8398eec011b3e8978a0d039b921133243d6 (diff) |
fix: added libgcc as explicit dependency for ARMphone
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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)/%=%);\ |