[Libreoffice-commits] core.git: 2 commits - configure.ac vcl/Library_vcl.mk
Tor Lillqvist
tml at iki.fi
Thu Jun 20 16:48:25 PDT 2013
configure.ac | 33 +++++++++++++++++++++++++--------
vcl/Library_vcl.mk | 2 +-
2 files changed, 26 insertions(+), 9 deletions(-)
New commits:
commit 585410476faca215122c96fdd4196ebf77a8df7d
Author: Tor Lillqvist <tml at iki.fi>
Date: Thu Jun 20 22:30:07 2013 +0300
Link with IOKit framework instead of -lIOKit directly
Change-Id: I67753d191264b362bf540ae6df19e8df1ce9c716
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index c4f52de..ea35ffc 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -79,7 +79,7 @@ $(eval $(call gb_Library_use_libraries,vcl,\
ifeq ($(OS),MACOSX)
$(eval $(call gb_Library_add_libs,vcl,\
- -lIOKit \
+ -framework IOKit \
-lobjc \
))
endif
commit 31ad78737a727bbd1d072c311ff1ae68515aea8c
Author: Tor Lillqvist <tml at iki.fi>
Date: Thu Jun 20 17:40:47 2013 +0300
Look for the 10.9 SDK, too
Change-Id: Iee70f531422fe6a312830dc9aa2d57e4f802953d
diff --git a/configure.ac b/configure.ac
index 75a2013..c7e6438 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2417,8 +2417,8 @@ if test $_os = Darwin; then
BITNESS_OVERRIDE=64
fi
- # If no --with-macosx-sdk option is given, look for 10.6, 10.7
- # and 10.8 SDKs, in that order. If not found in some (old)
+ # If no --with-macosx-sdk option is given, look for 10.6, 10.7,
+ # 10.8 and 10.9 SDKs, in that order. If not found in some (old)
# default locations, try the xcode-select tool.
# The intent is that for "most" Mac-based developers, a suitable
@@ -2429,8 +2429,8 @@ if test $_os = Darwin; then
# addition to Xcode 4 in /Applications/Xcode.app, the 10.6 SDK
# should be found.
- # For developers with a current Xcode 4 installed from the Mac App
- # Store, the 10.6, 10.7 or 10.8 SDK should be found.
+ # For developers with a current Xcode, the lowest-numbered SDK
+ # should be found.
AC_MSG_CHECKING([what Mac OS X SDK to use])
@@ -2451,6 +2451,8 @@ if test $_os = Darwin; then
with_macosx_sdk=10.7
elif test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"; then
with_macosx_sdk=10.8
+ elif test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"; then
+ with_macosx_sdk=10.9
fi
fi
if test -z "$with_macosx_sdk"; then
@@ -2468,6 +2470,9 @@ if test $_os = Darwin; then
10.8)
MACOSX_SDK_VERSION=1080
;;
+ 10.9)
+ MACOSX_SDK_VERSION=1090
+ ;;
*)
AC_MSG_ERROR([with-macosx-sdk $with_macosx_sdk is not a supported value, supported value are 10.6--8])
;;
@@ -2475,7 +2480,7 @@ if test $_os = Darwin; then
# Next find it (again, if we deduced its version above by finding
# it... but we need to look for it once more in case
- # --with-macosx-sdk was given so that the aboce search did not
+ # --with-macosx-sdk was given so that the above search did not
# happen).
if test -z "$MACOSX_SDK_PATH"; then
case $with_macosx_sdk in
@@ -2493,7 +2498,7 @@ if test $_os = Darwin; then
fi
fi
;;
- 10.7|10.8)
+ 10.7)
if test -d /Developer/SDKs/MacOSX$with_macosx_sdk.sdk; then
MACOSX_SDK_PATH=/Developer/SDKs/MacOSX$with_macosx_sdk.sdk
elif test -x /usr/bin/xcode-select; then
@@ -2503,6 +2508,12 @@ if test $_os = Darwin; then
fi
fi
;;
+ 10.8|10.9)
+ xcodepath="`xcode-select -print-path`"
+ if test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"; then
+ MACOSX_SDK_PATH="$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"
+ fi
+ ;;
esac
if test -z "$MACOSX_SDK_PATH"; then
AC_MSG_ERROR([Could not figure out the location of Mac OS X $with_macosx_sdk SDK])
@@ -2531,8 +2542,11 @@ if test $_os = Darwin; then
10.8)
MAC_OS_X_VERSION_MIN_REQUIRED="1080"
;;
+ 10.9)
+ MAC_OS_X_VERSION_MIN_REQUIRED="1090"
+ ;;
*)
- AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.6--8])
+ AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.6--9])
;;
esac
@@ -2570,7 +2584,7 @@ if test $_os = Darwin; then
CXX="g++-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
fi
;;
- 10.7|10.8)
+ 10.7|10.8|10.9)
if test "$enable_libc__" = yes -a "$with_macosx_version_min_required" != 10.6; then
# Use libc++ instead of libstdc++ when possible
# and also compile as C++11
@@ -2603,6 +2617,9 @@ if test $_os = Darwin; then
10.8)
MAC_OS_X_VERSION_MAX_ALLOWED="1080"
;;
+ 10.9)
+ MAC_OS_X_VERSION_MAX_ALLOWED="1090"
+ ;;
*)
AC_MSG_ERROR([with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.6--8])
;;
More information about the Libreoffice-commits
mailing list