Skip to content

Commit

Permalink
try static as much as possible to link oct mex
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 14, 2023
1 parent 57232f1 commit cc126b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
gcc -v
mkoctfile --version
if [[ "$RUNNER_OS" == "Linux" ]]; then
make oct LFLAGS='-static-libgcc -static-libstdc++ -Wl,-Bstatic -lz -lgomp -Wl,-Bdynamic'
make oct LFLAGS='-static-libgcc -static-libstdc++ -Wl,-Bstatic -lz -Wl,-Bdynamic'
ldd ../mmclab/mmc.mex
elif [[ "$RUNNER_OS" == "macOS" ]]; then
make oct CC=gcc-10 CXX=g++-10 USEROCTOPT="CXXFLAGS='-pipe -Os -arch x86_64' DL_LD=g++ DL_LDFLAGS='-fopenmp -static-libgcc -static-libstdc++'" LFLAGS='-Wl,-Bstatic -lz -Wl,-Bdynamic'
Expand Down

0 comments on commit cc126b6

Please sign in to comment.