Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


In my environment, Mac OS 10.8 and Xcode 4.4.1, without specifying Mac OS
X SDK version, it picks 10.6 as Mac OS X SDK.
And then it failed since it can't find gcc-4.2. So I tried to use option
--with-macosx-sdk with 10.8.
It's building now!

During applying --with-macosx-sdk option, I found some typos (maybe?), one
of them leads me to apply wrong option'--with-macox-sdk'.

I list them below just in case you are interested:

diff --git a/configure.in b/configure.in
index e060457..7633ea7 100644
--- a/configure.in
+++ b/configure.in
@@ -2472,7 +2472,7 @@ dnl Check / find MacOSX SDK and compiler, version
checks
 dnl ===================================================================
 if test "$_os" = "Darwin"; then
 
-    # If no --with-macox-sdk option is given, first look for the 10.4u
+    # If no --with-macosx-sdk option is given, first look for the 10.4u
     # SDK (which is distributed with the obsolete Xcode 3), then the
     # 10.6, 10.7 and 10.8 SDKs, in that order. (Don't bother looking
     # for the 10.5 SDK, unlikely somebody would have that but not
@@ -2513,7 +2513,7 @@ if test "$_os" = "Darwin"; then
                 with_macosx_sdk=10.8
             fi
         fi
-        if test -z "with_$macosx_sdk"; then
+        if test -z "$with_macosx_sdk"; then
             AC_MSG_ERROR([Could not figure out the location of a Mac OS X
SDK and its version])
         fi
     Fi


And I also pass the --with-macosx-sdk option through to the "BUILD
platform configuration" to make it work:

@@ -3731,6 +3731,7 @@ if test "$cross_compiling" = "yes"; then
         --with-num-cpus="$with_num_cpus" \
         --with-max-jobs="$with_max_jobs" \
         --without-doxygen \
+        --with-macosx-sdk="$with_macosx_sdk" \
         $sub_conf_opts \
         2>&1 | sed -e 's/^/    /'
     test -f ./config_host.mk 2>/dev/null || exit


Not sure I'm doing it in a appropriate approach though (This is my first
time to get involved with auto-config/autogen stuff).

James



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.