[LyX/master] Care for consistent compiler flag values of macosx-version-min with ObjC and C++

Stephan Witt switt at lyx.org
Mon Dec 6 06:24:47 UTC 2021


commit b48620dff17f69e8fd8dd9344ef49007b6c28c32
Author: Stephan Witt <switt at lyx.org>
Date:   Mon Dec 6 07:46:35 2021 +0100

    Care for consistent compiler flag values of macosx-version-min with ObjC and C++
---
 config/lyxinclude.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index 40f86ab..e6cab08 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -694,7 +694,7 @@ AC_DEFUN([LYX_CHECK_MACOS_DEPLOYMENT_TARGET],[
       ;;
     esac
   fi
-  AM_CXXFLAGS="-mmacosx-version-min=$macos_deployment_target $AM_CXXFLAGS"
+  AM_CPPFLAGS="-mmacosx-version-min=$macos_deployment_target $AM_CPPFLAGS"
   AM_LDFLAGS="-mmacosx-version-min=$macos_deployment_target $AM_LDFLAGS"
   AC_SUBST(macos_deployment_target,"${macos_deployment_target}")
   AC_MSG_CHECKING([the macos deployment target for LyX])


More information about the lyx-cvs mailing list