Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jmmerz
Copy link

@jmmerz jmmerz commented Nov 15, 2016

This is a potential fix for #1255. It adds a STATIC_WINPTHREAD build variable which when set to 'yes' will allow linking the winpthread library statically.

To maintain existing build by default, I'm initializing the value to 'no' if not set. I'm not certain though whether this is a widespread problem. If it is, perhaps the default should be 'yes'.

I'd welcome any ideas or suggestions on how to test more widely outside of my system.

@k-takata
Copy link
Member

To maintain existing build by default, I'm initializing the value to 'no' if not set. I'm not certain though whether this is a widespread problem. If it is, perhaps the default should be 'yes'.

How about following the setting of STATIC_STDCPLUS?

ifndef STATIC_WINPTHREAD
STATIC_WINPTHREAD=$(STATIC_STDCPLUS)
endif

@jmmerz
Copy link
Author

jmmerz commented Nov 16, 2016

That makes sense to me. Will make the change. Fewer options to pass in most cases probably.

Thanks for looking it over!

@brammool brammool closed this in e3af763 Dec 1, 2016
desvp pushed a commit to desvp/vim that referenced this pull request May 30, 2017
Problem:    When building with Cygwin libwinpthread isn't found.
Solution:   Link winpthread statically. (jmmerz, closes vim#1255, closes vim#1256)
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.

3 participants