[Bug 39696] New: -fPIC compile option required

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Nov 28 15:50:05 CST 2015


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 at winehq.org
          Reporter: blake1024 at 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

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list