Skip to content

Commit

Permalink
add missing LIBZLIB from oct target
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 23, 2023
1 parent d0e4210 commit 4399014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ jobs:
if: ${{ runner.os != 'Windows' }}
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
make -C src oct CC=gcc CXX=g++ MEXLDFLAG="-static"
make -C src oct CC=gcc CXX=g++ MEXLINKOPT="-static"
otool -L zipmat.mex
else
make -C src oct CC=gcc CXX=g++ MEXLDFLAG="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -Wl,-Bdynamic"
make -C src oct CC=gcc CXX=g++ MEXLINKOPT="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lm -Wl,-Bdynamic"
ldd zipmat.mex
fi
strip -S zipmat.mex
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ dll: AROUTPUT :=-o

oct mex: CPPOPT+= $(DLLFLAG)
oct: OUTPUT_DIR=..
oct: AR= CXXFLAGS="-O3" LDFLAGS="$(MEXLDFLAG)" mkoctfile zmat.cpp
oct: AR= CXXFLAGS="-O3" LDFLAGS="$(MEXLINKOPT) $(LIBZLIB)" mkoctfile zmat.cpp
oct: BINARY=zmat.mex
oct: ARFLAGS :=
oct: LINKOPT+=--mex $(INCLUDEDIRS)
Expand Down

0 comments on commit 4399014

Please sign in to comment.