Skip to content

Commit c1930af

Browse files
committed
Because of a change in CMake the updated libmysqlclient was only runnable on 10.12+, while 10.6+ was intended
(Also adapted the build script)
1 parent 67649f0 commit c1930af

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Binary file not shown.

Frameworks/SPMySQLFramework/build-mysql-client.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,15 @@ then
156156
exit 1
157157
fi
158158

159+
# For CMake 3.0+ use CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET to set SDK path and minimum version
160+
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DCMAKE_OSX_SYSROOT='${SDK_PATH}' -DCMAKE_OSX_DEPLOYMENT_TARGET=${MIN_OS_X_VERSION}"
161+
162+
# For CMake 2 add these parameters to the CFLAGS/CXXFLAGS:
163+
# -isysroot ${SDK_PATH} -mmacosx-version-min=${MIN_OS_X_VERSION}
164+
159165
# C/C++ compiler flags
160-
export CFLAGS="-isysroot ${SDK_PATH} ${ARCHITECTURES} -O3 -fno-omit-frame-pointer -fno-exceptions -mmacosx-version-min=${MIN_OS_X_VERSION}"
161-
export CXXFLAGS="-isysroot ${SDK_PATH} ${ARCHITECTURES} -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -mmacosx-version-min=${MIN_OS_X_VERSION}"
166+
export CFLAGS="${ARCHITECTURES} -O3 -fno-omit-frame-pointer -fno-exceptions"
167+
export CXXFLAGS="${ARCHITECTURES} -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
162168

163169
echo "$ESC[1mConfiguring MySQL source...$ESC[0m"
164170

0 commit comments

Comments
 (0)