https://bugs.winehq.org/show_bug.cgi?id=53392
Bug ID: 53392 Summary: does not compile on Openindiana (solaris11) Product: Wine Version: 7.13 Hardware: x86-64 OS: Solaris Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: malicorne@chez.com
It seems that wine does not respect the CFLAGS or at least to some extend.
$ uname -a SunOS addie 5.11 illumos-c1bbf9203b i86pc i386 i86pc illumos
$ ./configure CFLAGS="-fPIC" CXXFLAGS="-fPIC" --prefix=/opt/wine
$ make [...] gcc -o tools/winegcc/winegcc tools/winegcc/utils.o tools/winegcc/winegcc.o -lsocket -lnsl tools/winegcc/winegcc -o dlls/acledit/acledit.dll.so --wine-objdir . -fno-PIC -fasynchronous-unwind-tables -shared \ dlls/acledit/acledit.spec -Wb,--prefer-native -mno-cygwin dlls/acledit/main.o \ dlls/winecrt0/libwinecrt0.a dlls/ucrtbase/libucrtbase.a dlls/kernel32/libkernel32.a \ dlls/ntdll/libntdll.a Text relocation remains referenced against symbol offset in file .rodata (section) 0x11010 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11017 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11030 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11037 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11050 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11057 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11070 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11077 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11090 acledit.dll-62d91a2e.spec.o .rodata (section) 0x11097 acledit.dll-62d91a2e.spec.o .rodata (section) 0x110b0 acledit.dll-62d91a2e.spec.o .rodata (section) 0x110b7 acledit.dll-62d91a2e.spec.o .data (section) 0x110d5 acledit.dll-62d91a2e.spec.o .data (section) 0x110f1 acledit.dll-62d91a2e.spec.o .data (section) 0x11102 acledit.dll-62d91a2e.spec.o .data (section) 0x1110a acledit.dll-62d91a2e.spec.o .data (section) 0x11112 acledit.dll-62d91a2e.spec.o .data (section) 0x1111a acledit.dll-62d91a2e.spec.o .data (section) 0x11122 acledit.dll-62d91a2e.spec.o ld: fatal: relocations remain against allocatable but non-writable sections collect2: error: ld returned 1 exit status winegcc: /usr/bin/gcc failed make: *** [Makefile:1380: dlls/acledit/acledit.dll.so] Error 2 Error on line 4
If I replace the -fno-PIC by -fPIC as requested on CFLAGS, it does go on until next time.