Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3784ff9

Browse files
committed
Issue #13950: Improve support for OS X Xcode 4:
Fix ./configure to provide a more sensible default for MACOSX_DEPLOYMENT_TARGET. Currently the default is the minimum OS X level that supports the universal arch option, typically 10.4, even when no universalsdk is selected. This causes various desirable features that depend on later OS X versions, like libedit readline support, to be omitted from the build. A more complete solution would take into account the SDK that is being used and better tailor the universal arch options. For now, change the existing tests to only apply to build systems of 10.5 and earlier; for 10.6 and later, use the build system version as the default deployment target if the MACOSX_DEPLOYMENT_TARGET environment variable is not provided.
1 parent 52c6097 commit 3784ff9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5971,7 +5971,9 @@ $as_echo "$CC" >&6; }
59715971
# Calculate the right deployment target for this build.
59725972
#
59735973
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5974-
if test ${cur_target} '>' 10.2; then
5974+
if test ${cur_target} '>' 10.2 && \
5975+
test ${cur_target} '<' 10.6
5976+
then
59755977
cur_target=10.3
59765978
if test ${enable_universalsdk}; then
59775979
if test "${UNIVERSAL_ARCHS}" = "all"; then

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,9 @@ yes)
11771177
# Calculate the right deployment target for this build.
11781178
#
11791179
cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
1180-
if test ${cur_target} '>' 10.2; then
1180+
if test ${cur_target} '>' 10.2 && \
1181+
test ${cur_target} '<' 10.6
1182+
then
11811183
cur_target=10.3
11821184
if test ${enable_universalsdk}; then
11831185
if test "${UNIVERSAL_ARCHS}" = "all"; then

0 commit comments

Comments
 (0)