Home Help Center

Questions about building Ice on Linux / MacOS

bold84bold84 Bangkok, ThailandMember Benjamin OldenburgOrganization: ORDIS Co., Ltd.Project: N/A

Is there a specific reason why all executables (apart from the slice compilers) are excluded in the Makefile for static builds?

Thanks in advance and kind regards.

Ben

Best Answer

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Answer ✓

    The Slice compilers are statically linked with Slice library because the Slice library is for internal usage, our distributions don't ship with a Slice library.

    The distributions provide the static libraries required for building user applications, if you want to build a static linked executable that uses Ice you have all the required static libraries.

    For the rest of executables we never saw the need to link them statically and supporting this configuration would make the build more complicated.

Answers

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Answer ✓

    The Slice compilers are statically linked with Slice library because the Slice library is for internal usage, our distributions don't ship with a Slice library.

    The distributions provide the static libraries required for building user applications, if you want to build a static linked executable that uses Ice you have all the required static libraries.

    For the rest of executables we never saw the need to link them statically and supporting this configuration would make the build more complicated.

  • bold84bold84 Bangkok, ThailandMember Benjamin OldenburgOrganization: ORDIS Co., Ltd.Project: N/A

    Thank you very much.

Sign In or Register to comment.