Skip to content

Commit

Permalink
fix mac ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 16, 2022
1 parent 961c54c commit 40f4630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ script:
octave-cli --eval "addpath(pwd);cd test;run_zmat_test";
fi
- ${MAKE} -C src lib
- ${MAKE} -C example/c all LIBTYPE=static
- ${MAKE} -C example/c all
- ${MAKE} -C src dll
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
cp lib/* example/c;
fi
- ${MAKE} -C example/c all
- ${MAKE} -C example/c all LIBTYPE=
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
ls -lt lib;
DYLD_LIBRARY_PATH=lib example/c/testzmat;
Expand Down
4 changes: 2 additions & 2 deletions example/c/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
LIBTYPE ?= dynamic
LIBTYPE?=-static

all:
$(CC) -g -Wall -pedantic testzmat.c -o testzmat -I../../include -L../../lib -Wl,-B$(LIBTYPE) -lzmat -Wl,-Bdynamic -lz -lpthread
$(CC) -g -Wall -pedantic testzmat.c -o testzmat -I../../include -L../../lib $(LIBTYPE) -lzmat -lz -lpthread
clean:
-rm -f testzmat

0 comments on commit 40f4630

Please sign in to comment.