D17863: Add ecm_check_linker_flags function

Christophe Giboudeaux noreply at phabricator.kde.org
Mon Dec 31 12:45:12 GMT 2018


cgiboudeaux added a comment.


  In D17863#384229 <https://phabricator.kde.org/D17863#384229>, @tcberner wrote:
  
  > In D17863#384145 <https://phabricator.kde.org/D17863#384145>, @cgiboudeaux wrote:
  >
  > > Why not fixing kstars instead?
  >
  >
  >
  >
  >   include(ECMCheckLinkerFlags)
  >   [...]
  >   # Check for nodump support
  >   SET(NODUMP_FLAGS "-Wl,-z,nodump")
  >   ecm_check_linker_flags("${NODUMP_FLAGS}" NODUMP_SUPPORTED)
  >   if (NODUMP_SUPPORTED)
  >       SET(SEC_LINK_FLAGS "${SEC_LINK_FLAGS} ${NODUMP_FLAGS}")
  >   endif ()
  >
  >
  > Of course kstars could also just stop adding nodump ever :)
  
  
  agreed, kstars should stop adding random flags and just use what ECM already provides.
  
  For this reason, -1 for having this in ECM. This is a workaround for an app issue (and is not unit tested)

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17863

To: tcberner, #freebsd, dfaure, apol, cgiboudeaux
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20181231/026ee0db/attachment.html>


More information about the Kde-buildsystem mailing list