Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Replaced more hardcoded homebrew baths with environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Aug 21, 2023
1 parent f596c21 commit acafd5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildscripts/set_compilers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ case $COMPILER in
FROOT=$(realpath $(dirname $(command -v gfortran))/..)
FC=$(command -v gfortran)
LD_LIBRARY_PATH="${COMPILER_PREFIX}/lib:${FROOT}/lib:${LD_LIBRARY_PATH}"
LDFLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++"
LIBS="-L/opt/homebrew/opt/libomp/lib -lomp ${LIBS}"
LDFLAGS="-L${HOMEBREW_PREFIX}/opt/llvm/lib/c++ -Wl,-rpath,${HOMEBREW_PREFIX}/opt/llvm/lib/c+ -L${HOMEBREW_PREFIX}/opt/libomp/lib"
CPPFLAGS="-isystem ${HOMEBREW_PREFIX}/opt/libomp/include"
LIBS="-lomp ${LIBS}"
CPATH="${FROOT}/include:${CPATH}"
CFLAGS="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET} ${CFLAGS}"
CXXFLAGS="${CFLAGS} ${CXXFLAGS}"
Expand Down

0 comments on commit acafd5b

Please sign in to comment.