On Sat, Dec 14, 2019 at 8:18 PM Kevin Kofler <kevin.kof...@chello.at> wrote:

> Jerry James wrote:
> > $ gcc -specs=/usr/lib/rpm/redhat/redhat-hardened-ld test.c -o test
> > -lpthread /usr/bin/ld: /tmp/ccWdPlbg.o: `pthread_create@@GLIBC_2.2'
> > non-PLT reloc for symbol defined in shared library and accessed from
> > executable (rebuild file with -fPIC ?)
>
> The problem is that both your test invocation above and the original
> invocation from CMake are passing
> -specs=/usr/lib/rpm/redhat/redhat-hardened-ld and not
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1. The code needs to be
> compiled with the redhat-hardened-cc1 specs (which will enable -fpie) so
> that it can be linked with the redhat-hardened-ld specs.
>

Well, on the other arches redhat-hardened-ld is only being used on the
linker lines but clang (required for this package) is ignoring it anyway so
I filtered it out.

Trying a new build now:
https://koji.fedoraproject.org/koji/taskinfo?taskID=39617672

But what is the underlying cause of this change in behavior? I have build
this package (and specifically this version) before without issue.

Thanks,
Richard
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to