Skip to content

Commit

Permalink
Remove --use-temp-file from wx-config's rcflags
Browse files Browse the repository at this point in the history
wx-config always adds "--use-temp-file" to its rcflags to be
used as a windres parameter when compiling MS Windows resources.

However, this parameter is a relic from the difficult Windows 9x
times and is known to break the compilation in latest GCC versions.

wxWidgets does not use this parameter for its build anymore,
stop using it in wx-config as well.
  • Loading branch information
PBfordev authored and eranif committed Nov 21, 2020
1 parent 2b75bab commit 6826aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/wxconfig/wx-config-win.cpp
Expand Up @@ -1048,7 +1048,7 @@ class CompilerMinGW : public Compiler
+ addLib("version") + addLib("shlwapi") + addLib("ole32") + addLib("oleaut32"); po["libs"] += addLib("uuid") +
addLib("rpcrt4") + addLib("advapi32") + addLib("wsock32") + addLib("odbc32");
*/
po["rcflags"] = addFlag("--use-temp-file") + addResDefine("__WXMSW__") + po["__WXUNIV_DEFINE_p_1"];
po["rcflags"] = addResDefine("__WXMSW__") + po["__WXUNIV_DEFINE_p_1"];
po["rcflags"] += po["__DEBUG_DEFINE_p_1"] + po["__EXCEPTIONS_DEFINE_p_1"];
po["rcflags"] += po["__RTTI_DEFINE_p_1"] + po["__THREAD_DEFINE_p_1"] + po["__UNICODE_DEFINE_p_1"];
po["rcflags"] += po["__MSLU_DEFINE_p_1"] + po["__GFXCTX_DEFINE_p_1"] + addResIncludeDir(po["SETUPHDIR"]);
Expand Down

0 comments on commit 6826aff

Please sign in to comment.