]> git.sesse.net Git - vlc/commitdiff
MacOS: always specify a minimum-sdk
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 30 Nov 2011 17:38:34 +0000 (18:38 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 30 Nov 2011 18:49:29 +0000 (19:49 +0100)
This fixes issues on X.6 and X.7 when compiled with SDK10.5
The configure would fail to see -crt10.6 library and die on poll()

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
configure.ac

index f051ecd68ded4630fe97d05c6d28c7e0a510c10b..394807685c8aebd07789c2e08bd3efa88d5870f1 100644 (file)
@@ -168,6 +168,9 @@ case "${host_os}" in
     AC_ARG_WITH(macosx-version-min,
       [AS_HELP_STRING([--with-macosx-version-min=VERSION],
         [compile for MacOS X VERSION and above])])
+    if test "${with_macosx_version_min}" = "" ; then
+       with_macosx_version_min=10.5
+    fi 
     if test "${with_macosx_version_min}" != "" ; then
         CPP="${CPP} -mmacosx-version-min=${with_macosx_version_min}"
         CC="${CC} -mmacosx-version-min=${with_macosx_version_min}"