http://bugs.winehq.org/show_bug.cgi?id=17340
--- Comment #2 from cruiseoveride cruiseoveride@gmail.com 2009-02-11 09:55:28 --- (In reply to comment #1)
winebuild has a --target option for that purpose. Please show the exact error you get.
Thats correct. However the Makefile does not pass --target to winebuild/winegcc, and thus making it completely useless.
For example, while building acledit
** Here the correct toolchain is used i386-linux-gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o main.o main.c
** And here winegcc/winebuild is trying to call the system wide /usr/bin/ld ** Which in turn results in cross arch issues ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./acledit.spec main.o -o acledit.dll.so -lkernel32 ../../libs/port/libwine_port.a /usr/bin/ld: Relocatable linking with relocations from format elf32-i386 (main.o) to format elf64-x86-64 (acledit.SEum4r.o) is not supported winebuild: /usr/bin/ld -r failed with status 256 winegcc: ../../tools/winebuild/winebuild failed make: *** [acledit.dll.so] Error 2
And obviously after editing the mentioned lines in winebuild, the build correctly uses i386-linux-ld/as