mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
mysql: update to 5.7.15
This commit is contained in:
parent
efa6a8a55b
commit
34c4f0c7f9
@ -17,7 +17,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="mysql"
|
PKG_NAME="mysql"
|
||||||
PKG_VERSION="5.7.13"
|
PKG_VERSION="5.7.15"
|
||||||
PKG_REV="1"
|
PKG_REV="1"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="LGPL"
|
PKG_LICENSE="LGPL"
|
||||||
|
@ -0,0 +1,93 @@
|
|||||||
|
diff -Naur a/cmake/build_configurations/compiler_options.cmake b/cmake/build_configurations/compiler_options.cmake
|
||||||
|
--- a/cmake/build_configurations/compiler_options.cmake 2016-07-12 04:55:26.000000000 -0700
|
||||||
|
+++ b/cmake/build_configurations/compiler_options.cmake 2016-09-09 01:56:54.715063581 -0700
|
||||||
|
@@ -15,7 +15,6 @@
|
||||||
|
|
||||||
|
INCLUDE(CheckCCompilerFlag)
|
||||||
|
INCLUDE(CheckCXXCompilerFlag)
|
||||||
|
-INCLUDE(cmake/floating_point.cmake)
|
||||||
|
|
||||||
|
IF(SIZEOF_VOIDP EQUAL 4)
|
||||||
|
SET(32BIT 1)
|
||||||
|
@@ -34,10 +33,6 @@
|
||||||
|
IF(WITH_VALGRIND)
|
||||||
|
SET(COMMON_C_FLAGS "-fno-inline ${COMMON_C_FLAGS}")
|
||||||
|
ENDIF()
|
||||||
|
- # Disable optimizations that change floating point results
|
||||||
|
- IF(HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS)
|
||||||
|
- SET(COMMON_C_FLAGS "${COMMON_C_FLAGS} -fno-expensive-optimizations")
|
||||||
|
- ENDIF()
|
||||||
|
SET(CMAKE_C_FLAGS_DEBUG "${COMMON_C_FLAGS}")
|
||||||
|
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 ${COMMON_C_FLAGS}")
|
||||||
|
ENDIF()
|
||||||
|
@@ -53,10 +48,6 @@
|
||||||
|
IF(WITH_VALGRIND)
|
||||||
|
SET(COMMON_CXX_FLAGS "-fno-inline ${COMMON_CXX_FLAGS}")
|
||||||
|
ENDIF()
|
||||||
|
- # Disable optimizations that change floating point results
|
||||||
|
- IF(HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS)
|
||||||
|
- SET(COMMON_CXX_FLAGS "${COMMON_CXX_FLAGS} -fno-expensive-optimizations")
|
||||||
|
- ENDIF()
|
||||||
|
SET(CMAKE_CXX_FLAGS_DEBUG "${COMMON_CXX_FLAGS}")
|
||||||
|
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 ${COMMON_CXX_FLAGS}")
|
||||||
|
ENDIF()
|
||||||
|
diff -Naur a/cmake/floating_point.cmake b/cmake/floating_point.cmake
|
||||||
|
--- a/cmake/floating_point.cmake 2016-07-12 04:55:26.000000000 -0700
|
||||||
|
+++ b/cmake/floating_point.cmake 1969-12-31 16:00:00.000000000 -0800
|
||||||
|
@@ -1,56 +0,0 @@
|
||||||
|
-# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
-#
|
||||||
|
-# This program is free software; you can redistribute it and/or modify
|
||||||
|
-# it under the terms of the GNU General Public License as published by
|
||||||
|
-# the Free Software Foundation; version 2 of the License.
|
||||||
|
-#
|
||||||
|
-# This program is distributed in the hope that it will be useful,
|
||||||
|
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
-# GNU General Public License for more details.
|
||||||
|
-#
|
||||||
|
-# You should have received a copy of the GNU General Public License
|
||||||
|
-# along with this program; if not, write to the Free Software
|
||||||
|
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
-
|
||||||
|
-INCLUDE(CheckCSourceRuns)
|
||||||
|
-INCLUDE(CheckCXXSourceRuns)
|
||||||
|
-
|
||||||
|
-SET(code "
|
||||||
|
- int main (int argc, char **argv)
|
||||||
|
- {
|
||||||
|
- double n[21] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
- 0, 0, 0, 1, 1, 1, 1, 1, 1, 1,1 };
|
||||||
|
- double m= 0, s= 0;
|
||||||
|
- int i;
|
||||||
|
- for(i= 0; i < 21; i++)
|
||||||
|
- {
|
||||||
|
- double m_kminusone= m;
|
||||||
|
- m= m_kminusone + (n[i] - m_kminusone) / (double) (i + 2);
|
||||||
|
- s= s + (n[i] - m_kminusone) * (n[i] - m);
|
||||||
|
- }
|
||||||
|
- /*
|
||||||
|
- s should now be either 5e 74 d1 45 17 5d 14 40 or
|
||||||
|
- 40 14 5d 17 45 d1 74 5e, depending on endianness. If the floating point
|
||||||
|
- operations are over optimized, the least significant byte is 5d instead
|
||||||
|
- of 5e.
|
||||||
|
- */
|
||||||
|
- return (*(unsigned char*)(&s) == 0x5e ||
|
||||||
|
- *((unsigned char*)(&s) + 7) == 0x5e);
|
||||||
|
- }"
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
||||||
|
-SET(CMAKE_REQUIRED_FLAGS
|
||||||
|
- "${CMAKE_REQUIRED_FLAGS} -O3 -fexpensive-optimizations"
|
||||||
|
-)
|
||||||
|
-
|
||||||
|
-IF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
- CHECK_C_SOURCE_RUNS("${code}" HAVE_C_FLOATING_POINT_OPTIMIZATION_PROBLEMS)
|
||||||
|
-ENDIF()
|
||||||
|
-
|
||||||
|
-IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
- CHECK_CXX_SOURCE_RUNS("${code}" HAVE_CXX_FLOATING_POINT_OPTIMIZATION_PROBLEMS)
|
||||||
|
-ENDIF()
|
||||||
|
-
|
||||||
|
-SET(CMAKE_REQUIRED_FLAGS "${SAVE_CMAKE_REQUIRED_FLAGS}")
|
Loading…
x
Reference in New Issue
Block a user