Navigation Menu

Skip to content

Commit

Permalink
mysql8.0: follow .a output directory change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 29, 2018
1 parent 3522c93 commit 5d2fc5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
@@ -1,6 +1,6 @@
# -*- indent-tabs-mode: nil -*-
#
# Copyright(C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
# Copyright(C) 2012-2018 Kouhei Sutou <kou@clear-code.com>
# Copyright(C) 2013 Kentoku SHIBA
#
# This library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -259,7 +259,11 @@ else()
set_mysql_config_value("--plugindir" MYSQL_PLUGIN_DIR)
set_mysql_config_value("--variable=pkglibdir" MYSQL_PKG_LIB_DIR)
set(MYSQL_SERVICES_LIB_STATIC
"${MYSQL_BUILD_DIR}/libservices/libmysqlservices.a")
"${MYSQL_BUILD_DIR}/archive_output_directory/libmysqlservices.a")
if(NOT EXISTS "${MYSQL_SERVICES_LIB_STATIC}")
set(MYSQL_SERVICES_LIB_STATIC
"${MYSQL_BUILD_DIR}/libservices/libmysqlservices.a")
endif()
if(NOT EXISTS "${MYSQL_SERVICES_LIB_STATIC}")
set(MYSQL_SERVICES_LIB_STATIC "${MYSQL_PKG_LIB_DIR}/libmysqlservices.a")
endif()
Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Expand Up @@ -225,8 +225,11 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
*)
AC_MSG_CHECKING([for libmysqlservices.a directory])
pkglibdir="$($ac_mysql_config --variable=pkglibdir)"
mysql_build_archive_output_dir="${MYSQL_BUILD_DIR}/archive_output_directory"
mysql_build_libservices_dir="${MYSQL_BUILD_DIR}/libservices"
if test -f "${mysql_build_libservices_dir}/libmysqlservices.a"; then
if test -f "${mysql_build_archive_output_dir}/libmysqlservices.a"; then
mysql_services_lib_dir="${mysql_build_archive_output_dir}"
elif test -f "${mysql_build_libservices_dir}/libmysqlservices.a"; then
mysql_services_lib_dir="${mysql_build_libservices_dir}"
else
if test -f "${pkglibdir}/libmysqlservices.a"; then
Expand Down

0 comments on commit 5d2fc5b

Please sign in to comment.