https://bugs.winehq.org/show_bug.cgi?id=39696
Bug ID: 39696 Summary: -fPIC compile option required Product: Wine Version: 1.8-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: blake1024@gmail.com Distribution: ---
When I built my app in 64 bit mode it wouldn't link. It said:
winegcc -g -o main main.o main.res ../../lib/wds.a ../../lib/dynace.a -lkernel -luser -lgdi -lcomdlg -lcomctl -ladvapi -lshell -lmpr -lwine -lmsvcrt -lmsimg -lm /usr/bin/ld: ../../lib/dynace.a(Object.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC ../../lib/dynace.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status winegcc: gcc failed
I tried recompiling everything with -fPIC and the link then succeeded. If 64 bit WINE apps require -fPIC then the docs should be very clear about it.
Thanks.
Blake McBride