]> git.sesse.net Git - vlc/commitdiff
macosx: fix CPP + SDK usage
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 5 Sep 2008 14:46:26 +0000 (16:46 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 5 Sep 2008 14:46:26 +0000 (16:46 +0200)
configure.ac

index 0aeb086ec8d77d067300878f35e48672284c8287..75073cbeddb7ccf5102655b0c08c41d34caef453 100644 (file)
@@ -275,6 +275,7 @@ case "${host_os}" in
     AC_ARG_WITH(macosx-sdk,
        [  --with-macosx-sdk=DIR   compile using the SDK in DIR])
     if test "${with_macosx_sdk}" != "" ; then
+        CPP="${CPP} -isysroot ${with_macosx_sdk}" 
         CC="${CC} -isysroot ${with_macosx_sdk}" 
         CXX="${CXX} -isysroot ${with_macosx_sdk}"
         OBJC="${OBJC} -isysroot ${with_macosx_sdk}"
@@ -283,6 +284,7 @@ case "${host_os}" in
     AC_ARG_WITH(macosx-version-min,
        [  --with-macosx-version-min=VERSION  compile for MacOSX VERSION and above])
     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}" 
         CXX="${CXX} -mmacosx-version-min=${with_macosx_version_min}"
         OBJC="${OBJC} -mmacosx-version-min=${with_macosx_version_min}"