On 2025-11-30 3:16 PM, Gordon Messmer wrote:
the fact that this works interactively but not in rpm build makes me
think that there is some environment variable at fault
The problem was actually caused by SUSE's spec *setting* CXX_FLAGS
rather than extending them:
%cmake \
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" ...
That created an inconsistency between CXX_FLAGS and LDFLAGS, which
caused ld to exit and complain that "relocation R_X86_64_32S against
`.rodata' can not be used when making a PIE object". The error was in
the logs, but it was much earlier than I expected and I missed it the
first time through.
Removing that argument allows the package to build.
I have only a vague notion of how this resulted in the error that cmake
reported, and no idea at all why cmake searched for the configuration
file in /usr, /, /usr/local, and /opt immediately before failing.
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue