winegcc: Use $(CC) for building generated .spec.c

Jon Griffiths jon_p_griffiths at
Tue May 25 02:56:27 CDT 2004


Building and linking a C++ dll to a Winelib app currently fails using
winegcc as it will use $(CXX) to compile the .spec.c file. This means
it won't link correctly to due to the name mangling. I
tried 2 solutions: changing winebuild to generate extern "C" {}
declarations where needed, and changing winegcc to use $(CC) instead.
Of the two, I think the latter is neater. The following patch
implements it.

     Always use $(CC) for building the generated .spec.c file

"Don't wait for the seas to part, or messiahs to come;
 Don't you sit around and waste this chance..." - Live

jon_p_griffiths at

Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winegcc_c.diff
Type: text/x-diff
Size: 967 bytes
Desc: winegcc_c.diff
Url :

More information about the wine-patches mailing list