https://bugs.kde.org/show_bug.cgi?id=429103

--- Comment #31 from caulier.gil...@gmail.com ---
Git commit 6928a9436cf4665655e27242133804285992190a by Gilles Caulier.
Committed on 05/12/2020 at 06:02.
Pushed by cgilles into branch 'master'.

Fix Major and Minor detection for the target MacOS and linking with libc++

M  +3    -2    project/bundles/macports/common.sh

https://invent.kde.org/graphics/digikam/commit/6928a9436cf4665655e27242133804285992190a

diff --git a/project/bundles/macports/common.sh
b/project/bundles/macports/common.sh
index fc283d824b..2e722ccc5c 100755
--- a/project/bundles/macports/common.sh
+++ b/project/bundles/macports/common.sh
@@ -36,9 +36,10 @@ fi

 export MACOSX_DEPLOYMENT_TARGET=$OSX_MIN_TARGET

-OSX_MAJOR=`echo $MACOSX_DEPLOYMENT_TARGET | awk -F '.' '{print $1 "." $2}'|
cut -d . -f 2`
+MACOS_MAJOR=`echo $MACOSX_DEPLOYMENT_TARGET | awk -F '.' '{print $1 "." $2}'|
cut -d . -f 1`
+MACOS_MINOR=`echo $MACOSX_DEPLOYMENT_TARGET | awk -F '.' '{print $1 "." $2}'|
cut -d . -f 2`

-if [[ $OSX_MAJOR -lt 9 ]]; then
+if [[ $MACOS_MAJOR -lt 11 && $MACOS_MINOR -lt 9 ]]; then
     export CXXFLAGS=-stdlib=libc++
 fi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to