Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32425

How to build MongoDB as a static executable

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None

      I wanted to know if its possible to build 'mongod' statically. I am using following command and I see that build is success full but binary is still dynamically linked..

      scons --link-model=static -j 44 CCFLAGS=" -march=armv8-a+crc -static" --disable-warnings-as-errors

      Any inputs on what compile options I should use to get statically linked executable?

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            Arkeri Praveen Arkeri
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: