Generate an import lib to accompany winpty.dll.

winpty.lib isn't needed for console.exe, but it could be useful to other
software embedding winpty.  MSVC needs it to link against winpty.dll.
This commit is contained in:
Ryan Prichard 2016-02-21 01:35:30 -06:00
parent d72f4a44f8
commit 30c6e9f7e0

View File

@ -26,6 +26,6 @@ LIBWINPTY_OBJECTS = \
build/winpty.dll : $(LIBWINPTY_OBJECTS)
@echo Linking $@
@$(MINGW_CXX) $(MINGW_LDFLAGS) -shared -o $@ $^
@$(MINGW_CXX) $(MINGW_LDFLAGS) -shared -o $@ $^ -Wl,--out-implib,build/winpty.lib
-include $(LIBWINPTY_OBJECTS:.o=.d)