http://bugs.winehq.org/show_bug.cgi?id=18832
--- Comment #3 from Scott Ritchie scott@open-vote.org 2009-06-08 05:48:18 --- No -fno-profile-generate is needed for the (4 or 5) programs like sfnt2fnt if you build this way:
make distclean && CFLAGS="-Wall -g -O2 -fprofile-generate" LDFLAGS="-fprofile-generate -lgcov" ./configure --host=x86_64-linux-gnu --build=x86_64-linux-gnu && make
However this again leads to a gcov error, this time in libwinecrt0
make[2]: Entering directory `/home/scott/src/wine-1.1.23-oldprofiled/dlls/avifile.dll16' ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -shared ./avifile.dll16.spec -Wb,--subsystem,win16,--main-module,avifil32.dll -o avifile.dll16.so -lavifil32 -lkernel32 ../../libs/port/libwine_port.a -fprofile-generate -lgcov ../../dlls/winecrt0/libwinecrt0.a(dll_entry.o): In function `__wine_spec_dll_entry': /home/scott/src/wine-1.1.23-oldprofiled/dlls/winecrt0/dll_entry.c:30: undefined reference to `__gcov_indirect_call_profiler'
I will note that some dlls seem to build and link fine.