[2019-02] Extend mono-native minimum version magic to CPPFLAGS/CXXFLAGS (#12813)
commitea3ee83061cfbf29140b7bce9bc34542f99c1702
authormonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 6 Feb 2019 17:54:05 +0000 (6 12:54 -0500)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 6 Feb 2019 17:54:05 +0000 (6 18:54 +0100)
tree9ac023ac27753ed3511952a30715ff89fad50066
parent6fe4c149ee6b49922a8bcbe80addb685e5ab75f7
[2019-02] Extend mono-native minimum version magic to CPPFLAGS/CXXFLAGS (#12813)

We were only doing the `-mmacosx-min-version` replacement magic on CFLAGS and LDFLAGS for mono-native-compat and -unified, but we need to do the same for CPPFLAGS/CXXFLAGS too.

Fixes an issue where the libraries were targeting the wrong minimum OSX version when built from xamarin-macios since they pass the minimum version in CPPFLAGS instead of CFLAGS for OSX.

Backport of #12801.
configure.ac
mono/native/Makefile.am