[Wine] Building wine with profile generation

Ema wineforum-user at winehq.org
Sat Feb 14 03:32:51 CST 2009

Hi all,

I'm trying to build wine with the following command:


./configure CFLAGS="-O2 -fprofile-generate" --prefix=/home/ema/winepf

As I have a lot of these errors:


gcc -O2 -fprofile-generate -o sfnt2fnt sfnt2fnt.o -L../libs/wine -lwine ../libs/port/libwine_port.a  -lfreetype -lz -Wl,--rpath,\$ORIGIN/../libs/wine
/usr/bin/ld: sfnt2fnt: hidden symbol `__gcov_merge_add' in /usr/lib/gcc/i486-linux-gnu/4.3.2/libgcov.a(_gcov_merge_add.o) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [sfnt2fnt] Error 1

So I have to start amend the single Makefiles for every subdirectory that doesn't compile.
Has anyone any solution tocompile the full wine with -fprofile-generate flag?

I'd really like to optimize it but...I got a huge amount of these errors...

More information about the wine-users mailing list