<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 12, 2020 at 12:54 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/11/2020 00:31, Nate Alderson wrote:<br>
> Hello,<br>
> <br>
> I am attempting to build PyQt5-5.15.2.dev2010041344 on SPARC, Solaris <br>
> 11.4<br>
> with gcc 9.3.0 , but it fails linking:<br>
> <br>
> ....<br>
> ld: fatal: relocation error: R_SPARC_M44: file<br>
> moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid <br>
> shared<br>
> object relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_L44: file<br>
> moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid <br>
> shared<br>
> object relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_H44: file<br>
> moc_qpycore_event_handlers.o: symbol QHash<QObject*,<br>
> QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object<br>
> relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_M44: file<br>
> moc_qpycore_event_handlers.o: symbol QHash<QObject*,<br>
> QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object<br>
> relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_L44: file<br>
> moc_qpycore_event_handlers.o: symbol QHash<QObject*,<br>
> QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object<br>
> relocation type: ABS44 code model unsupported<br>
> <br>
> <br>
> Googling indicated I should add the -fPIC option to the g++ flags but I<br>
> can't figure out how that works. I've tried:<br>
> "python configure.py CXXFLAGS+=-fPIC" among other things but nothing <br>
> seems<br>
> to work. Any suggestions?<br>
> <br>
> I have manually added the flag to some Makefiles and that resolved the<br>
> issue.<br>
> <br>
> Thanks,<br>
> Nate<br>
<br>
Try QMAKE_CXXFLAGS<br>
<br>
Phil<br></blockquote><div><br></div><div>That worked. Thank you. <br></div></div></div>