Skip to content

Commit

Permalink
use static option for crmc on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
aalkin committed Feb 16, 2024
1 parent c0c4c6a commit e87021b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ build_requires:
- alibuild-recipe-tools
---
#!/bin/bash -ex
STATIC="OFF"
case $ARCHITECTURE in
osx*)
# If we preferred system tools, we need to make sure we can pick them up.
[[ ! $BOOST_ROOT ]] && BOOST_ROOT=`brew --prefix boost`
LINKER_FLAGS="-Wl,-undefined dynamic_lookup"
STATIC="ON"
;;
esac

cmake $SOURCEDIR \
${BOOST_ROOT:+-DBOOST_ROOT=$BOOST_ROOT} \
cmake $SOURCEDIR \
-D__CRMCSTATIC__=${STATIC} \
${BOOST_ROOT:+-DBOOST_ROOT=$BOOST_ROOT} \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT -DCMAKE_Fortran_FLAGS="-std=legacy" \
${LINKER_FLAGS:+-DCMAKE_SHARED_LINKER_FLAGS="$LINKER_FLAGS"}
make ${JOBS+-j $JOBS} all
Expand Down

0 comments on commit e87021b

Please sign in to comment.