On Tue, Dec 20, 2022 at 02:49:48PM +0100, Florian Weimer wrote: > * Daniel P. Berrangé: > > > One notable thing is Ubuntu's use of --enable-default-pie. Some Google > > links also suggested -fPIC as a possible solution to my error, so I > > tried modifying the build system to add -fPIC to CFLAGS/LDFLAGS, but > > that merely gave me a differrent set of errors :-( > > Have you tried building with -fPIE? Why jump straight to -fPIC? I have not tried -fPIE, I just blindly went to -fPIC out of habit. > With -fPIE, the mapping address does not matter to the compiler (so no > absolute R_X86_64_32S relocations), and external calls should stop using > the GOT, too (so no more relaxation issues). Thanks for explaining, I've now confirmed that if I get -fPIE added in the right places, it successfully builds. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue