[PATCH] Make wine build with the Intel CC

Maarten Lankhorst m.b.lankhorst at gmail.com
Sat Apr 21 15:23:22 CDT 2007

Jonathan Schleifer schreef:
> Hi!
> This patch makes it possible to build an run wine with the Intel
> compiler.
> Here are the environment variables I used to build:
> export CFLAGS="-O3 -xP -msse3 -parallel"
> export CXX="icc"
> export CXXFLAGS="-O3 -xP -msse3 -parallel"
> export LDFLAGS="-lguide -lsvml -lstdc++ -parallel"
> export MAKEFLAGS="-j 2"
Wine could build fine without c++, not sure why everything has to link against the c++ library as it will probably only be needed in winegcc. Also these compiling flags seem kind of agressive.

> I #ifdef'd the asm code out since for some strange reason, it was
> already defined when using ICC.
> Could you please test it and commit it if it works?
They are defined in include/winbase.h - just make sure icc is recognised
there. you can't just comment out those Interlocked functions, some
applications might need them. Plus the way you do it makes the code
unreadable. I cannot test this as I don't have icc.


More information about the wine-devel mailing list