File tree Expand file tree Collapse file tree
Frameworks/SPMySQLFramework
MySQL Client Libraries/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,9 +156,15 @@ then
156156 exit 1
157157fi
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
163169echo " $ESC [1mConfiguring MySQL source...$ESC [0m"
164170
You can’t perform that action at this time.
0 commit comments