https://bugs.winehq.org/show_bug.cgi?id=54214
Bug ID: 54214 Summary: No way to pass optimization levels in x86_64_CFLAGS to mingw Product: Wine Version: 8.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: shtetldik@gmail.com Distribution: ---
I'm trying to build Wine with increased optimizations, and while setting CFLAGS / CXXFLAGS works for native compilation parts (using: -O3 -march=znver3), when it's doing cross compilation parts, those aren't picked up and uses default (-g -O2).
I looked into the definitions, and Makefile is using x86_64_CFLAGS for mingw invocations. But setting that in the environment is ignored.
What is the way to pass optimization levels to cross compilation part?
https://bugs.winehq.org/show_bug.cgi?id=54214
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
--- Comment #1 from Zhiyi Zhang zzhang@codeweavers.com --- Try CROSSCFLAGS
https://bugs.winehq.org/show_bug.cgi?id=54214
--- Comment #2 from Shmerl shtetldik@gmail.com --- (In reply to Zhiyi Zhang from comment #1)
Try CROSSCFLAGS
Perfect, that worked. Thanks!
It would be good to add that info to configure --help, since it mentions CFLAGS only, so it's pretty obscure how to set that for cross compilation part.
https://bugs.winehq.org/show_bug.cgi?id=54214
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|No way to pass optimization |Document a way to pass |levels in x86_64_CFLAGS to |optimization levels to |mingw |mingw through CROSSCFLAGS | |in configure --help