Skip to content

Commit

Permalink
set clang, try to directly link to static libc++
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Aug 14, 2023
1 parent 9721986 commit a9ff543
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ fi
export DUNE_COPASI_USE_STATIC_DEPS=ON
export CMAKE_INSTALL_PREFIX=$DEPSDIR
export MAKE_OPTIONS="-j2 VERBOSE=1"
export CMAKE_CXX_FLAGS="'-fvisibility=hidden -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -L/usr/local/opt/llvm/lib/c++ -Wl,-rpath,/usr/local/opt/llvm/lib/c++'"
export CMAKE_CXX_FLAGS="'-fvisibility=hidden -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -L/usr/local/opt/llvm/lib/c++ -static-libstdc++'"
export DUNE_PDELAB_ENABLE_TRACING=OFF
export DUNE_COPASI_USE_PARAFIELDS=OFF
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++
if [[ $MSYSTEM ]]; then
# on windows add flags to support large object files
# https://stackoverflow.com/questions/16596876/object-file-has-too-many-sections
Expand Down

0 comments on commit a9ff543

Please sign in to comment.