Add missing arm64 to Darwin LIBARCHS and remove dependencies tracking if building universal binary (dependencies not compatible with fat binaries)

This commit is contained in:
fG!
2023-05-19 12:22:57 +01:00
parent 7fbfce7aee
commit 9f6fa17928
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ V ?= 0
OS := $(shell uname)
ifeq ($(OS),Darwin)
LIBARCHS ?= x86_64
LIBARCHS ?= x86_64 arm64
PREFIX ?= /usr/local
endif
+3 -1
View File
@@ -2,7 +2,9 @@
# Common functions used by Makefile & tests/Makefile
define compile
@$(CC) -MM -MP -MT $@ -MT $(@:.o=.d) $(CFLAGS) $< > $(@:.o=.d)
$(ifeq ($(MACOS_UNIVERSAL),no),
@$(CC) -MM -MP -MT $@ -MT $(@:.o=.d) $(CFLAGS) $< > $(@:.o=.d)
)
${CC} ${CFLAGS} -c $< -o $@
endef