Skip to content

Commit

Permalink
don't need or want to link libc++ for zlib as it is a c library
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Aug 14, 2023
1 parent d6a3ce6 commit cac2ea5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ cmake -G "Ninja" .. \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++" \
-DCMAKE_STATIC_LINKER_FLAGS="-L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++" \
-DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX"
time ninja zlibstatic
# manual install to avoid shared libs being installed & issues with compiling example programs
Expand Down

0 comments on commit cac2ea5

Please sign in to comment.