Skip to content

Commit 9e53d82

Browse files
committed
Merge pull request #104 from macvim-dev/fix/yosemite_deployment_target
Set MACOSX_DEPLOYMENT_TARGET to the runtime version if it wasn't set
2 parents 383be18 + 55323a5 commit 9e53d82

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/auto/configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4299,6 +4299,11 @@ $as_echo "no" >&6; }
42994299
fi
43004300
rm -f core conftest.err conftest.$ac_objext \
43014301
conftest$ac_exeext conftest.$ac_ext
4302+
else
4303+
if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
4304+
macosx_deployment_target=`/usr/bin/sw_vers -productVersion`
4305+
XCODEFLAGS="$XCODEFLAGS MACOSX_DEPLOYMENT_TARGET=$macosx_deployment_target"
4306+
fi
43024307
fi
43034308

43044309

src/configure.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ if test "`(uname) 2>/dev/null`" = Darwin; then
187187
MACSDK=""
188188
CFLAGS="$save_cflags"
189189
LDFLAGS="$save_ldflags" ])
190+
else
191+
if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
192+
macosx_deployment_target=`/usr/bin/sw_vers -productVersion`
193+
XCODEFLAGS="$XCODEFLAGS MACOSX_DEPLOYMENT_TARGET=$macosx_deployment_target"
194+
fi
190195
fi
191196

192197

0 commit comments

Comments
 (0)