Skip to content

Commit

Permalink
Attempt to link with additional libraries
Browse files Browse the repository at this point in the history
In order to fix linking issue: undefined reference to `__imp_gethostname'
  • Loading branch information
stemann committed Aug 24, 2022
1 parent 2492847 commit 69c2f58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion G/Gloo/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ atomic_patch -p1 ../patches/musl-caddr.patch
mkdir build
cd build
if [[ $target != *w64-mingw32* ]]; then
cmake_extra_args="-DUSE_LIBUV=ON"
cmake_extra_args="
-DUSE_LIBUV=ON \
-DCMAKE_CXX_STANDARD_LIBRARIES=-lws2_32"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=$prefix \
Expand Down

0 comments on commit 69c2f58

Please sign in to comment.