18339670 mysql compiler questions
authorLaasya Moduludu <laasya.moduludu@oracle.com>
Tue, 17 Jun 2014 23:17:19 -0700
changeset 1950 16c7750a701f
parent 1949 97e85b2096e5
child 1951 da0722ff8ee6
18339670 mysql compiler questions
components/mysql-5-5/Makefile
components/mysql-5-5/resolve.deps
--- a/components/mysql-5-5/Makefile	Sat Jun 14 12:12:06 2014 -0700
+++ b/components/mysql-5-5/Makefile	Tue Jun 17 23:17:19 2014 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../make-rules/shared-macros.mk
 
@@ -39,6 +39,7 @@
 # Enable ASLR for this component
 ASLR_MODE           = $(ASLR_ENABLE)
 
+
 # This component uses cmake to generate Makefiles and thus does not
 # run any configure script
 CMAKE               = $(shell which cmake)
@@ -52,8 +53,10 @@
 CMAKE_LIBDIR.64     = lib/$(MACH64)
 CMAKE_PLUGINDIR.32  = lib/plugin
 CMAKE_PLUGINDIR.64  = lib/$(MACH64)/plugin
-CMAKE_CFLAGS.64     = -m64
-CMAKE_CXXFLAGS.64   = -m64
+CMAKE_CFLAGS.64     = "-m64 -norunpath"
+CMAKE_CXXFLAGS.64   = "-m64 -norunpath"
+CMAKE_CFLAGS.32     = -norunpath
+CMAKE_CXXFLAGS.32   = -norunpath
 
 # Providing component specific build options to cmake
 CMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
@@ -76,6 +79,9 @@
 CMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
 CMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
 CMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
+CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX) 
+CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
+CMAKE_OPTIONS += -DCMAKE_EXE_LINKER_FLAGS="-norunpath"
 CMAKE_OPTIONS += -DCMAKE_C_FLAGS=$(CMAKE_CFLAGS.$(BITS))
 CMAKE_OPTIONS += -DCMAKE_CXX_FLAGS=$(CMAKE_CXXFLAGS.$(BITS))
 CMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
--- a/components/mysql-5-5/resolve.deps	Sat Jun 14 12:12:06 2014 -0700
+++ b/components/mysql-5-5/resolve.deps	Tue Jun 17 23:17:19 2014 -0700
@@ -4,7 +4,6 @@
 shell/ksh93
 system/core-os
 system/library
-system/library/gcc/gcc-c-runtime
-system/library/gcc/gcc-c++-runtime
 system/library/math
+system/library/c++-runtime
 system/network