Added STRIP to Windows DLL build to reduce executable size
This commit is contained in:
1
Makefile
1
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user