mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Do not use fvisibility flag if GCC does not support it
(i.e if gcc version < 4)
This commit is contained in:
commit
400f9587c5
3 changed files with 11 additions and 8 deletions
|
@ -279,12 +279,15 @@ ENDFUNCTION()
|
|||
|
||||
MACRO(RESTRICT_SYMBOL_EXPORTS target)
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX AND UNIX)
|
||||
GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} COMPILE_FLAGS)
|
||||
IF(NOT COMPILE_FLAGS)
|
||||
# Avoid COMPILE_FLAGS-NOTFOUND
|
||||
SET(COMPILE_FLAGS)
|
||||
CHECK_C_COMPILER_FLAG("-fvisibility=hidden" HAVE_VISIBILITY_HIDDEN)
|
||||
IF(HAVE_VISIBILITY_HIDDEN)
|
||||
GET_TARGET_PROPERTY(COMPILE_FLAGS ${target} 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()
|
||||
SET_TARGET_PROPERTIES(${target} PROPERTIES
|
||||
COMPILE_FLAGS "${COMPILE_FLAGS} -fvisibility=hidden")
|
||||
ENDIF()
|
||||
ENDMACRO()
|
||||
|
|
|
@ -25,7 +25,7 @@ AC_CANONICAL_SYSTEM
|
|||
#
|
||||
# When changing major version number please also check switch statement
|
||||
# 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])
|
||||
|
||||
# Request support for automake silent-rules if available.
|
||||
|
|
|
@ -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/partition_info.cc ../sql/sql_connect.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
|
||||
${CMAKE_BINARY_DIR}/sql/sql_builtin.cc
|
||||
${GEN_SOURCES}
|
||||
|
|
Loading…
Reference in a new issue