Permalink
Browse files

Because of a change in CMake the updated libmysqlclient was only runn…

…able on 10.12+, while 10.6+ was intended

(Also adapted the build script)
  • Loading branch information...
dmoagx committed May 21, 2017
1 parent 67649f0 commit c1930afccdfbd594947dcdf6a67e91a0282da4b0
@@ -156,9 +156,15 @@ then
exit 1
fi
# For CMake 3.0+ use CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET to set SDK path and minimum version
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DCMAKE_OSX_SYSROOT='${SDK_PATH}' -DCMAKE_OSX_DEPLOYMENT_TARGET=${MIN_OS_X_VERSION}"
# For CMake 2 add these parameters to the CFLAGS/CXXFLAGS:
# -isysroot ${SDK_PATH} -mmacosx-version-min=${MIN_OS_X_VERSION}
# C/C++ compiler flags
export CFLAGS="-isysroot ${SDK_PATH} ${ARCHITECTURES} -O3 -fno-omit-frame-pointer -fno-exceptions -mmacosx-version-min=${MIN_OS_X_VERSION}"
export CXXFLAGS="-isysroot ${SDK_PATH} ${ARCHITECTURES} -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -mmacosx-version-min=${MIN_OS_X_VERSION}"
export CFLAGS="${ARCHITECTURES} -O3 -fno-omit-frame-pointer -fno-exceptions"
export CXXFLAGS="${ARCHITECTURES} -O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
echo "$ESC[1mConfiguring MySQL source...$ESC[0m"

0 comments on commit c1930af

Please sign in to comment.