summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-01-27 02:52:04 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-01-27 02:52:04 +0100
commit24b6ae2d0b81199278255cac1ccaeb59c80cbde5 (patch)
treeaf3aa71f5addc03e07b4953a24f5bf11d0334f71 /cmake
parent90d4e963f154bbbee3fc81287941e94bf66cb5aa (diff)
downloadmariadb-git-24b6ae2d0b81199278255cac1ccaeb59c80cbde5.tar.gz
Added AIX, OS400 and Cygwin.
This finishes of moving code from configure.cmake IF()'s to platform specific files
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Makefile.am6
-rw-r--r--cmake/os/AIX.cmake33
-rw-r--r--cmake/os/Cygwin.cmake17
-rw-r--r--cmake/os/OS400.cmake17
4 files changed, 72 insertions, 1 deletions
diff --git a/cmake/Makefile.am b/cmake/Makefile.am
index c8341cb14cb..e136ac89d69 100644
--- a/cmake/Makefile.am
+++ b/cmake/Makefile.am
@@ -28,5 +28,9 @@ EXTRA_DIST = \
os/Linux.cmake \
os/SunOS.cmake \
os/Darwin.cmake \
- os/HP-UX.cmake
+ os/HP-UX.cmake \
+ os/AIX.cmake \
+ os/OS400.cmake \
+ os/Cygwin.cmake
+
diff --git a/cmake/os/AIX.cmake b/cmake/os/AIX.cmake
new file mode 100644
index 00000000000..b1b2cebdd14
--- /dev/null
+++ b/cmake/os/AIX.cmake
@@ -0,0 +1,33 @@
+# Copyright (C) 2010 Sun Microsystems, Inc
+#
+# 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
+
+
+#Enable 64 bit file offsets
+SET(_LARGE_FILES 1)
+
+# Fix xlC oddity - it complains about same inline function defined multiple times
+# in different compilation units
+INCLUDE(CheckCXXCompilerFlag)
+ CHECK_CXX_COMPILER_FLAG("-qstaticinline" HAVE_QSTATICINLINE)
+ IF(HAVE_QSTATICINLINE)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qstaticinline")
+ ENDIF()
+
+# The following is required to export all symbols
+# (also with leading underscore)
+STRING(REPLACE "-bexpall" "-bexpfull" CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
+ ${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS}")
+STRING(REPLACE "-bexpall" "-bexpfull" CMAKE_SHARED_LIBRARY_LINK_C_FLAGS
+ "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS}") \ No newline at end of file
diff --git a/cmake/os/Cygwin.cmake b/cmake/os/Cygwin.cmake
new file mode 100644
index 00000000000..5b2d82c19b8
--- /dev/null
+++ b/cmake/os/Cygwin.cmake
@@ -0,0 +1,17 @@
+# Copyright (C) 2010 Sun Microsystems, Inc
+#
+# 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
+
+# Cygwin is not Windows
+SET(WIN32 0) \ No newline at end of file
diff --git a/cmake/os/OS400.cmake b/cmake/os/OS400.cmake
new file mode 100644
index 00000000000..b8cad2917f9
--- /dev/null
+++ b/cmake/os/OS400.cmake
@@ -0,0 +1,17 @@
+# Copyright (C) 2010 Sun Microsystems, Inc
+#
+# 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
+
+GET_FILENAME_COMPONENT(_SCRIPT_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
+INCLUDE(${_SCRIPT_DIR}/AIX.cmake) \ No newline at end of file