components/mysql-5-5/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 5593 952d22fd02f4
child 5797 432ac76de3b0
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     1
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     3
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     7
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    12
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    18
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@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: 5593
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    22
#
5593
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    25
BUILD_BITS= 64_and_32
1961
9d3d037fabad 18339670 mysql compiler questions (parfait workaround)
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1950
diff changeset
    26
export PARFAIT_BUILD=no
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    28
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME        = mysql
5593
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    30
COMPONENT_VERSION     = 5.5.48
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH= \
5593
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    32
    sha256:cc3f8745879eee0508de1a70fc2d267a2d06b7433faa8bb07a787768dcfed781
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    33
COMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.5/$(COMPONENT_ARCHIVE)
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL = http://dev.mysql.com/ 
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    35
COMPONENT_BUGDB       = database/mysql
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    36
5593
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    37
# MySQL doesn't like cloning
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    38
CLONEY = echo
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    39
COMPONENT_PRE_BUILD_ACTION += \
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    40
  $(CP) -rp $(SOURCE_DIR)/* $(@D);
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    42
BUILD_STYLE= cmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    43
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    44
include $(WS_MAKE_RULES)/common.mk
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    45
5593
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    46
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    47
# Remove "-z ignore" to avoid link problem, missing C++ runtime
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    48
# references in libmysqlclient.so
952d22fd02f4 22739240 Upgrade MySQL 5.5 to 5.5.48 on Solaris
Gipson Pulla <gipson.pulla@oracle.com>
parents: 4746
diff changeset
    49
LD_Z_IGNORE =
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    50
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    51
# This component uses cmake to generate Makefiles and thus does not
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    52
# 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: 5593
diff changeset
    53
CMAKE_PREFIX        = $(USRDIR)/mysql/5.5
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    54
CONFDIR             = $(ETCDIR)/mysql/5.5
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5593
diff changeset
    55
DATA_PREFIX         = $(VARDIR)/mysql/5.5
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    56
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    57
CMAKE_BINDIR.32     = bin/$(MACH32)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    58
CMAKE_BINDIR.64     = bin
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    59
CMAKE_LIBDIR.32     = lib
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    60
CMAKE_LIBDIR.64     = lib/$(MACH64)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    61
CMAKE_PLUGINDIR.32  = lib/plugin
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    62
CMAKE_PLUGINDIR.64  = lib/$(MACH64)/plugin
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    63
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    64
# Providing component specific build options to cmake
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    65
CMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    66
CMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    67
CMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    68
CMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    69
CMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    70
CMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    71
CMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    72
CMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    73
CMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    74
CMAKE_OPTIONS += -DWITH_SSL=bundled
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    75
CMAKE_OPTIONS += -DWITH_READLINE=ON
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    76
CMAKE_OPTIONS += -DENABLE_DTRACE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    77
CMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    78
CMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    79
CMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    80
CMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    81
CMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    82
CMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    83
CMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    84
CMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    85
CMAKE_OPTIONS += -DFEATURE_SET=community
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    86
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    87
REQUIRED_PACKAGES += library/security/openssl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    88
REQUIRED_PACKAGES += runtime/perl-512
4746
8e237ffd0a48 20995635 Perl TK needs to be upgraded to work with Perl 5.20
Bill Rushmore <bill.rushmore@oracle.com>
parents: 4510
diff changeset
    89
REQUIRED_PACKAGES += runtime/perl-520
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    90
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    91
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    92
REQUIRED_PACKAGES += system/library/c++-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    93
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1961
diff changeset
    94
REQUIRED_PACKAGES += system/network