[Bug 4979] New: wine .9.11 make fails on AMD64
rob at codeweavers.com
Mon Apr 3 09:23:57 CDT 2006
Tomas Carnecky wrote:
>Robert Shearman wrote:
>>This is a bug with the artsc-config utility, not with Wine. All of these
>>types of utilities are fundamentally broken on 64-bit distributions when
>>trying to compile as 32-bit.
>And what about fixing first wine instead of complaining about third
>$ ./configure --prefix=/usr --disable-win16 CFLAGS="-march=k8 -O2 -pipe"
>gcc -m32 -march=k8 -O2 -pipe -o sfnt2fnt sfnt2fnt.o -L../libs/unicode
>-lwine_unicode -L../libs/port -lwine_port -lfreetype -lz
>skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
>skipping incompatible /usr/lib/libfreetype.a when searching for -lfreetype
>cannot find -lfreetype
>collect2: ld returned 1 exit status
>make: *** [sfnt2fnt] Error 1
>Here wine doesn't use LDFLAGS to link this executable, this breaks
>compilation on my gentoo box. That's why I have to add
>"-L/emul/linux/x86/usr/lib" to CFLAGS.
>and this maybe isn't the only place, but I don't know enough about
>makefiles to fix it myself.
You might want to find out why you have to add anything to LDFLAGS. I
don't know about other distributions, but on 64-bit Ubuntu passing the
-m32 flag to gcc will make it automatically add the standard 32-bit lib
directories to the lib path (i.e. /lib32, /usr/lib32, etc.).
More information about the wine-devel