Skip to content

Commit

Permalink
fix the broken linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 12, 2023
1 parent 6c839e9 commit 4d158b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ ifeq ($(findstring _NT-,$(PLATFORM)), _NT-)
ZMATLIB :=zmat/zmatlib.obj zmat/lz4/lz4.obj zmat/lz4/lz4hc.obj zmat/easylzma/*.obj zmat/easylzma/pavlov/*.obj
USERLINKOPT:=${LIBRARIES} $(ZMATLIB) $(ZLIBFLAG)
MEXLINKLIBS="\$$LINKLIBS"
export CC CXX
else ifeq ($(findstring Darwin,$(PLATFORM)), Darwin)
CUDA_STATIC=--cudart static
CPPOPT+=$(OMP)
Expand Down Expand Up @@ -285,7 +286,7 @@ mcx_bench$(OBJSUFFIX): mcx_bench.c
$(CUDACC) -c $(CUCCOPT) -o $@ $<

$(ZMATLIB):
-$(MAKE) -C zmat lib CC=nvcc AR=ar CPPOPT="$(DLLFLAG) -O3" USERLINKOPT=
-$(MAKE) -C zmat lib AR=ar CPPOPT="$(DLLFLAG) -O3" USERLINKOPT=
clean:
-$(MAKE) -C zmat clean
-rm -f $(OBJS) $(OUTPUT_DIR)/$(BINARY)$(EXESUFFIX) $(OUTPUT_DIR)/$(BINARY)_atomic$(EXESUFFIX) $(OUTPUT_DIR)/$(BINARY)_det$(EXESUFFIX) $(ZMATLIB)
Expand Down

0 comments on commit 4d158b1

Please sign in to comment.