Skip to content

Commit

Permalink
moving lz after blosc2
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 24, 2023
1 parent 7fce5e9 commit da36b0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
make -C src oct CC=gcc CXX=g++ MEXLINKOPT="-static"
otool -L zipmat.mex
else
make -C src oct CC=gcc CXX=g++ MEXLINKOPT="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lpthread -Wl,-Bdynamic"
make -C src oct CC=gcc CXX=g++ MEXLINKOPT="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -lpthread -Wl,-Bdynamic" LIBZLIB="-Wl,-Bstatic -lz"
ldd zipmat.mex
fi
strip -S zipmat.mex
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ else
INCLUDEDIRS+=-Iblosc2/internal-complibs/zstd-1.5.2
LIBZLIB+=-Lblosc2/internal-complibs/zstd-1.5.2 -lzstd
endif
LIBZLIB+=-Lblosc2/lib -lblosc2 -lpthread
LIBZLIB+=-Lblosc2/lib -lblosc2 -lpthread -lz
INCLUDEDIRS+=-Iblosc2/include
endif

Expand Down Expand Up @@ -154,7 +154,7 @@ oct: LINKOPT+=--mex $(INCLUDEDIRS) $(LIBZLIB)
mex: CXX=$(MEX)
mex: OUTPUTFLAG:=-output
mex: AR=$(MEX) zmat.cpp $(INCLUDEDIRS)
mex: LINKOPT+= -cxx LINKLIBS="-L\"\$$MATLABROOT/extern/lib/\$$ARCH\" -L\"\$$MATLABROOT/bin/\$$ARCH\" -lmx -lmex $(MEXLINKOPT) $(LIBZLIB)" CXXLIBS="\$$CXXLIBS $(MEXLINKOPT) $(LIBZLIB)" -outdir $(ZMATDIR)
mex: LINKOPT+=-cxx LINKLIBS="-L\"\$$MATLABROOT/extern/lib/\$$ARCH\" -L\"\$$MATLABROOT/bin/\$$ARCH\" -lmx -lmex $(MEXLINKOPT) $(LIBZLIB)" CXXLIBS="\$$CXXLIBS $(MEXLINKOPT) $(LIBZLIB)" -outdir $(ZMATDIR)
mex: ARFLAGS :=
mex: OUTPUT_DIR=..

Expand Down

0 comments on commit da36b0a

Please sign in to comment.