Hi,
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 libwine.so 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.
Changelog:
+tools/winegcc/winegcc.c
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 yahoo.com
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winegcc_c.diff
Type: text/x-diff
Size: 967 bytes
Desc: winegcc_c.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040525/1a2c4f1b/winegcc_c.bin