Skip to content
Permalink
Browse files
MDEV-17009 PIE issue on FreeBSD after 10.3.9 update
Followup for 96b8909. Only link mysqld with
${INTERFACE_LIBS} using LINK_PUBLIC, everything else should be
using LINK_PRIVATE. This restores pre-96b8909062c behavior.

Also fixes
MDEV-17010 Multiple definition issue on FreeBSD after 10.3.9 update
  • Loading branch information
vuvova committed Sep 21, 2018
1 parent 27235ee commit 8893d19
Showing 1 changed file with 2 additions and 2 deletions.
@@ -279,7 +279,7 @@ IF(APPLE)
# Add CoreServices framework since some dloadable plugins may need it
FIND_LIBRARY(CORESERVICES NAMES CoreServices)
IF(CORESERVICES)
TARGET_LINK_LIBRARIES(mysqld ${CORESERVICES})
TARGET_LINK_LIBRARIES(mysqld LINK_PRIVATE ${CORESERVICES})
ENDIF()
ENDIF()

@@ -300,7 +300,7 @@ IF(NOT WITHOUT_DYNAMIC_PLUGINS)
ENDIF()
ENDIF(NOT WITHOUT_DYNAMIC_PLUGINS)

TARGET_LINK_LIBRARIES(mysqld sql)
TARGET_LINK_LIBRARIES(mysqld LINK_PRIVATE sql)

# Provide plugins with minimal set of libraries
SET(INTERFACE_LIBS ${LIBRT})

0 comments on commit 8893d19

Please sign in to comment.