Commit 400f9587 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Do not use fvisibility flag if GCC does not support it

(i.e if gcc version < 4)
parents 9fe3b669 3701208a
...@@ -279,12 +279,15 @@ ENDFUNCTION() ...@@ -279,12 +279,15 @@ ENDFUNCTION()
MACRO(RESTRICT_SYMBOL_EXPORTS target) MACRO(RESTRICT_SYMBOL_EXPORTS target)
IF(CMAKE_COMPILER_IS_GNUCXX AND UNIX) IF(CMAKE_COMPILER_IS_GNUCXX AND UNIX)
GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} COMPILE_FLAGS) CHECK_C_COMPILER_FLAG("-fvisibility=hidden" HAVE_VISIBILITY_HIDDEN)
IF(NOT COMPILE_FLAGS) IF(HAVE_VISIBILITY_HIDDEN)
# Avoid COMPILE_FLAGS-NOTFOUND GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} COMPILE_FLAGS)
SET(COMPILE_FLAGS) IF(NOT COMPILE_FLAGS)
# Avoid COMPILE_FLAGS-NOTFOUND
SET(COMPILE_FLAGS)
ENDIF()
SET_TARGET_PROPERTIES(${target} PROPERTIES
COMPILE_FLAGS "${COMPILE_FLAGS} -fvisibility=hidden")
ENDIF() ENDIF()
SET_TARGET_PROPERTIES(${target} PROPERTIES
COMPILE_FLAGS "${COMPILE_FLAGS} -fvisibility=hidden")
ENDIF() ENDIF()
ENDMACRO() ENDMACRO()
...@@ -25,7 +25,7 @@ AC_CANONICAL_SYSTEM ...@@ -25,7 +25,7 @@ AC_CANONICAL_SYSTEM
# #
# When changing major version number please also check switch statement # When changing major version number please also check switch statement
# in client/mysqlbinlog.cc:check_master_version(). # in client/mysqlbinlog.cc:check_master_version().
AM_INIT_AUTOMAKE(mysql, 5.5.99) AM_INIT_AUTOMAKE(mysql, 5.5.99-m3)
AM_CONFIG_HEADER([include/config.h:config.h.in]) AM_CONFIG_HEADER([include/config.h:config.h.in])
# Request support for automake silent-rules if available. # Request support for automake silent-rules if available.
......
...@@ -79,7 +79,7 @@ SET(SQL_EMBEDDED_SOURCES emb_qcache.cc libmysqld.c lib_sql.cc ...@@ -79,7 +79,7 @@ SET(SQL_EMBEDDED_SOURCES emb_qcache.cc libmysqld.c lib_sql.cc
../sql/time.cc ../sql/tztime.cc ../sql/uniques.cc ../sql/unireg.cc ../sql/time.cc ../sql/tztime.cc ../sql/uniques.cc ../sql/unireg.cc
../sql/partition_info.cc ../sql/sql_connect.cc ../sql/partition_info.cc ../sql/sql_connect.cc
../sql/scheduler.cc ../sql/event_parse_data.cc ../sql/scheduler.cc ../sql/event_parse_data.cc
../sql/sql_signal.cc ../sql/rpl_handler.cc ../sql/keycaches.cc ../sql/sql_signal.cc ../sql/rpl_handler.cc
../sql/sys_vars.cc ../sql/sys_vars.cc
${CMAKE_BINARY_DIR}/sql/sql_builtin.cc ${CMAKE_BINARY_DIR}/sql/sql_builtin.cc
${GEN_SOURCES} ${GEN_SOURCES}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment