Skip to content

Commit

Permalink
Because of a change in CMake the updated libmysqlclient was only runn…
Browse files Browse the repository at this point in the history
…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 c1930af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Binary file not shown.
10 changes: 8 additions & 2 deletions Frameworks/SPMySQLFramework/build-mysql-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit c1930af

Please sign in to comment.