Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static linking. #6

Merged
merged 1 commit into from
Dec 21, 2016
Merged

Fix static linking. #6

merged 1 commit into from
Dec 21, 2016

Commits on Dec 21, 2016

  1. Fix static linking.

    Make static linking possible when using Visual Studio and when using GNU
    Make. To link statically with GNU Make, do:
    
    make LDFLAGS=-static ...other arguments...
    
    To link statically with VS 2015, install static versions of
    dependencies:
    
    vcpkg install libpng:x86-windows-static gflags:x86-windows-static
    
    change the runtime library setting in the project from /MD to /MT,
    attempt to build with VS and then run:
    
    c:\path\to\msbuild /p:Configuration=Release /p:VcpkgTriplet=x86-windows-static /p:VcpkgEnabled=true
    robryk committed Dec 21, 2016
    Configuration menu
    Copy the full SHA
    f86b901 View commit details
    Browse the repository at this point in the history