mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
For libmysqld.so, apply patch to the MySQL Bug#39288 found here
http://lists.mysql.com/commits/102373 It is better than previous attempts to build the libmysqld, as it also takes care of 1) -Wl,--no-undefined for shared libraries and 2) CLEAN_DIRECT_OUTPUT since there are now 2 libraries with the same base output name
This commit is contained in:
@ -277,6 +277,15 @@ MACRO(MERGE_LIBRARIES)
|
||||
MYSQL_INSTALL_TARGETS(${TARGET} DESTINATION "${INSTALL_LIBDIR}" ${COMP})
|
||||
ENDIF()
|
||||
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
||||
IF(ARG_SHARED AND LINK_FLAG_NO_UNDEFINED)
|
||||
# Do not allow undefined symbols in shared libraries
|
||||
GET_TARGET_PROPERTY(TARGET_LINK_FLAGS ${TARGET} LINK_FLAGS)
|
||||
IF(NOT TARGET_LINK_FLAGS)
|
||||
SET(TARGET_LINK_FLAGS)
|
||||
ENDIF()
|
||||
SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_FLAGS
|
||||
"${TARGET_LINK_FLAGS} ${LINK_FLAG_NO_UNDEFINED}")
|
||||
ENDIF()
|
||||
ENDMACRO()
|
||||
|
||||
FUNCTION(GET_DEPENDEND_OS_LIBS target result)
|
||||
|
Reference in New Issue
Block a user