Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13259

Remove need to define _GNU_SOURCE in multiple places in cmake

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Storage Engines
    • 2
    • StorEng - Defined Pipeline

      Currently add_cmake_flag(CMAKE_C_FLAGS -D_GNU_SOURCE) occurs in multiple platform configurations, for example: cmake/configs/*/linux/config.cmake.

      Recommend this be refactored to a single location that uses the cmake function check_symbol_exists . The logic being that if the compiler supports that symbol, we want to use it, and it will de-duplicate the cmake files simplifying maintenance.

      Steps:

      1. Add check_symbol_exists for _GNU_SOURCE in a common location and update flags accordingly.
      2. Remove all explicit duplicate entries in cmake config files.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            marc.butler@mongodb.com Marc Butler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: