Skip to content

'-static' option not working correctly #11478

@demian51

Description

@demian51

Hello!

I'm using OpenSSL with static linking in Windows, using Visual Studio 2019. Lately, I updated the library from 1.1.0e to 1.1.1f and the library is not correctly built. When I try to build a library, the script adds /MD option although I appended -static. In 1.1.0e it set /MT option correctly.

I searched and found #11414, but it was not helpful. After some trial and error, I realized that the file Configure has the error. In commit aacae7a(see line 1573) the script was not correctly modified. Originally the option -static made shared disabled, but it turns off static after the commit.

If I add no-shared explicitly, everything works fine. It seems that the script needs a fix.(Or should I make a pull request?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 1.1.1Merge to OpenSSL_1_1_1-stable branchtriaged: questionThe issue contains a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions