From e87021b59e5b761494064c795d097ca9ecb5f229 Mon Sep 17 00:00:00 2001 From: Anton Alkin Date: Wed, 30 Aug 2023 21:07:56 +0200 Subject: [PATCH] use static option for crmc on mac --- crmc.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crmc.sh b/crmc.sh index 2261e4f8fc..ad9a1110a9 100644 --- a/crmc.sh +++ b/crmc.sh @@ -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