diff --git a/goldendict.pro b/goldendict.pro index 4720cb3a..f10af87d 100644 --- a/goldendict.pro +++ b/goldendict.pro @@ -41,6 +41,8 @@ win32 { VERSION = 1.5.0 # More complicated things cause errors during compilation under MSVC++ DEFINES += __WIN32 _CRT_SECURE_NO_WARNINGS QMAKE_CXXFLAGS += /wd4290 # silence the warning C4290: C++ exception specification ignored + QMAKE_LFLAGS_RELEASE += /LTCG /OPT:REF /OPT:ICF + QMAKE_CXXFLAGS_RELEASE += /GL LIBS += -lshell32 -luser32 -lsapi -lole32 -lhunspell LIBS += -L$${PWD}/winlibs/lib/msvc } else {