components/mysql-5-6/Makefile
author Craig Mohrman <craig.mohrman@oracle.com>
Thu, 04 Aug 2016 08:26:36 -0700
changeset 6548 24913c16931e
parent 6009 f947b86fc7dd
child 6552 402379bc1b60
permissions -rw-r--r--
PSARC/2016/303 enable rsyslog as default Solaris logger 24362425 rsyslog should degrade service if syslog.conf has been modified
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     1
#
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     3
#
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     7
#
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    12
#
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    18
#
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    21
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    25
BUILD_BITS= 64_and_32
4726
4c4fc9ba31dd 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris (disable parfait)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 4725
diff changeset
    26
export PARFAIT_BUILD=no
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    28
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME        = mysql
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    30
COMPONENT_VERSION     = 5.6.29
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    31
COMPONENT_SRC         = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    32
COMPONENT_ARCHIVE     = $(COMPONENT_SRC).tar.gz
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    34
         sha256:6ac85b75b2dfa8c232725dda25469df37bf4e48b408cc0978d0dfc34c25a817f
4725
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
    35
COMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.6/$(COMPONENT_ARCHIVE)
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    36
COMPONENT_PROJECT_URL = http://dev.mysql.com/ 
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    37
COMPONENT_BUGDB       = database/mysql
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    38
6009
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    39
# Requires newer version of system/library/c++-runtime from Studio, available
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    40
# in S12 but not 11.3, so do not publish.
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    41
ifeq ($(BUILD_TYPE), evaluation)
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    42
BUILD_32_and_64=
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    43
INSTALL_32_and_64=
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    44
PUBLISH_STAMP=
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    45
endif
f947b86fc7dd 23294048 do not publish mysql-5-6 when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5837
diff changeset
    46
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    47
#We use cp(1) instead of cloney because we use TAR to copy files and the TAR 
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    48
#used doesn't handle long links
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    49
CLONEY = echo
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    50
COMPONENT_PRE_BUILD_ACTION +=  $(CP) -rp $(SOURCE_DIR)/* $(@D);
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    51
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    52
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    53
TEST_TARGET= $(NO_TESTS)
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    54
SYSTEM_TEST_TARGET= $(NO_TESTS)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    55
include $(WS_MAKE_RULES)/common.mk
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    56
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    57
# Enable ASLR for this component
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    58
ASLR_MODE           = $(ASLR_ENABLE)
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    59
4725
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
    60
# MySQL being one of Oracle's own product doesn't require to have a
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
    61
# TPNO License number.
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
    62
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    63
# This component uses cmake to generate Makefiles and thus does not
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    64
# run any configure script
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    65
CMAKE               = $(shell which cmake)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    66
CMAKE_PREFIX        = $(USRDIR)/mysql/5.6
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    67
CONFDIR             = $(ETCDIR)/mysql/5.6
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4746
diff changeset
    68
DATA_PREFIX         = $(VARDIR)/mysql/5.6
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    69
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    70
CMAKE_BINDIR.32     = bin/$(MACH32)
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    71
CMAKE_BINDIR.64     = bin
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    72
CMAKE_LIBDIR.32     = lib
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    73
CMAKE_LIBDIR.64     = lib/$(MACH64)
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    74
CMAKE_PLUGINDIR.32  = lib/plugin
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    75
CMAKE_PLUGINDIR.64  = lib/$(MACH64)/plugin
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    76
CMAKE_CFLAGS.32     = -m32
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    77
CMAKE_CFLAGS.64     = -m64
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    78
CMAKE_CXXFLAGS.32   = -m32 -xnorunpath -std=c++03
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
    79
CMAKE_CXXFLAGS.64   = -m64 -xnorunpath -std=c++03
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    80
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    81
# Providing component specific build options to cmake
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    82
CMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    83
CMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    84
CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    85
CMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    86
CMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    87
CMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    88
CMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    89
CMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    90
CMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    91
CMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    92
CMAKE_OPTIONS += -DWITH_SSL=bundled
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    93
CMAKE_OPTIONS += -DWITH_READLINE=ON
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    94
CMAKE_OPTIONS += -DENABLE_DTRACE=1
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    95
CMAKE_OPTIONS += -DHAVE_REAL_DTRACE_INSTRUMENTING=ON
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    96
CMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    97
CMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    98
CMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
    99
CMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   100
CMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   101
CMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   102
CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX)
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   103
CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
   104
CMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
4725
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
   105
CMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CMAKE_CFLAGS.$(BITS))"
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
   106
CMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(CMAKE_CXXFLAGS.$(BITS))"
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   107
CMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   108
CMAKE_OPTIONS += -DFEATURE_SET=community
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
   109
CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   110
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   111
COMPONENT_PRE_BUILD_ACTION += cd $(@D);
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   112
COMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   113
COMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   114
COMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   115
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   116
# Adjust '#!/usr/bin/perl'
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   117
$(INSTALL_64): PERL_SCRIPTS= \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   118
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_convert_table_format \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   119
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_find_rows \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   120
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_fix_extensions \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   121
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_install_db \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   122
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_secure_installation \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   123
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_setpermission \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   124
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_zap \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   125
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqlaccess \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   126
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqld_multi \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   127
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqldumpslow \
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   128
	$(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqlhotcopy
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   129
4725
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
   130
REQUIRED_PACKAGES += database/mysql-56/client
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   131
REQUIRED_PACKAGES += library/security/openssl
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
   132
REQUIRED_PACKAGES += $(PERL_PKG)
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   133
REQUIRED_PACKAGES += shell/ksh93
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   134
REQUIRED_PACKAGES += system/core-os
4725
b637001b5b2d 21164142 Upgrade the version of MySQL 5.6 to 5.6.25 on Solaris
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents: 4339
diff changeset
   135
REQUIRED_PACKAGES += system/library/c++-runtime
5837
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
   136
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
2f6077a68fbd 22816574 Upgrade the version of MySQL 5.6 to 5.6.29 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 5797
diff changeset
   137
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
4135
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   138
REQUIRED_PACKAGES += system/library/math
1222d02d1332 PSARC 2014/431 Update MySQL to 5.6
Murthy Narkedimilli <murthy.narkedimilli@oracle.com>
parents:
diff changeset
   139
REQUIRED_PACKAGES += system/network