diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-06-12 05:41:02 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-06-11 14:41:02 -0700 |
| commit | 59a8a9c6248ed230b19028a44484ae5f06db697d (patch) | |
| tree | 5f9744fecea7eae4be1ca5ad3bcaee23af3fa1aa /ports/libmysql/linux_libmysql.patch | |
| parent | 143ae13d28063ea404e75692083db26e02d36c66 (diff) | |
| download | vcpkg-59a8a9c6248ed230b19028a44484ae5f06db697d.tar.gz vcpkg-59a8a9c6248ed230b19028a44484ae5f06db697d.zip | |
[libmysql]Fix build error in linux. (#6442)
* [libmysql]Fix build error in linux.
* [libmysql] Fix typo in prerequisites message
Diffstat (limited to 'ports/libmysql/linux_libmysql.patch')
| -rw-r--r-- | ports/libmysql/linux_libmysql.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ports/libmysql/linux_libmysql.patch b/ports/libmysql/linux_libmysql.patch new file mode 100644 index 000000000..42dfa73d8 --- /dev/null +++ b/ports/libmysql/linux_libmysql.patch @@ -0,0 +1,18 @@ +diff --git a/configure.cmake b/configure.cmake +index 1f3d8e2..9e45f48 100644 +--- a/configure.cmake ++++ b/configure.cmake +@@ -456,7 +456,11 @@ IF(NOT HAVE_FCNTL_NONBLOCK) + ENDIF() + + IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC) +- STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} processor) ++ IF(${CMAKE_SYSTEM_PROCESSOR}) ++ STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} processor) ++ ELSE() ++ STRING(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} processor) ++ ENDIF() + IF(processor MATCHES "86" OR processor MATCHES "amd64" OR processor MATCHES "x64") + IF(NOT CMAKE_SYSTEM_NAME MATCHES "SunOS") + # The loader in some Solaris versions has a bug due to which it refuses to + |
