Skip to content

Commit acf444e

Browse files
committed
make - disable D flag for AR on Darwin
1 parent 0aa54c0 commit acf444e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ quiet ?= $($(1))
3232
.PRECIOUS: %/.DIR
3333

3434

35+
DARWIN := $(filter Darwin,$(shell uname -s))
36+
37+
3538
# ------------------------------------------------------------
3639
# Root directories for backend dependencies
3740
# ------------------------------------------------------------
@@ -75,7 +78,7 @@ ifeq (,$(filter-out undefined default,$(origin AR)))
7578
AR = ar
7679
endif
7780
ifeq (,$(filter-out undefined default,$(origin ARFLAGS)))
78-
ARFLAGS = crD
81+
ARFLAGS = $(if $(DARWIN),cr,crD)
7982
endif
8083
NVCC ?= $(CUDA_DIR)/bin/nvcc
8184
NVCC_CXX ?= $(CXX)
@@ -225,7 +228,6 @@ MFLAGS := -j $(NPROCS) --warn-undefined-variables \
225228
PYTHON ?= python3
226229
PROVE ?= prove
227230
PROVE_OPTS ?= -j $(NPROCS)
228-
DARWIN := $(filter Darwin,$(shell uname -s))
229231
SO_EXT := $(if $(DARWIN),dylib,so)
230232

231233
ceed.pc := $(LIBDIR)/pkgconfig/ceed.pc

0 commit comments

Comments
 (0)