Enable whole-program optimization when compiling eSpeak-NG (#17631)
Closes #17623
Summary of the issue:
As for now, whole-program optimization for eSpeak-NG is intentionally turned off.
# Whole-program optimization causes eSpeak to distort and warble with its Klatt4 voice
# Therefore specifically force it off
"/GL-",
This was introduced in commit cf0443b when MSVC 2012 was used to compile eSpeak.
Enabling whole-program optimization can make the eSpeak DLL more efficient and smaller, from 637 KiB to 624 KiB.
It can also solve the problem of using a dynamically linked version of Sonic without __declspec(dllimport) in the header, because the optimization will be performed by the linker, if whole-program optimization is enabled.