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

Conversation

robryk
Copy link
Contributor

@robryk robryk commented Dec 21, 2016

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

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 robryk requested a review from eustas December 21, 2016 16:28
@robryk robryk merged commit 431c6c1 into google:master Dec 21, 2016
sarvex pushed a commit to sarvex/guetzli that referenced this pull request May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants