Added STRIP to Windows DLL build to reduce executable size

This commit is contained in:
Joseph Henry
2017-10-12 12:12:24 -07:00
parent 9473b6f74a
commit 9a2b689b51

View File

@@ -291,6 +291,7 @@ win_dll: lwip lwip_driver libzt_socket_layer utilities $(ZTO_OBJS)
mv *.o obj
windres -i res/libztdll.rc -o obj/libztdllres.o
$(CXX) $(CXXFLAGS) -shared -o $(BUILD)/libzt.dll obj/*.o -Wl,--output-def,$(BUILD)/libzt.def,--out-implib,$(BUILD)/libzt.a $(WINDEFS)
$(STRIP) $(BUILD)/libzt.dll
# Then do the following to generate the mSVC DLL from the def file (which was generated from the MinGW DLL):
# lib /machine:x64 /def:libzt.def