[Bug 1218620] New: cmake: -Wl,--no-undefined breaks canokey-qemu build
https://bugzilla.suse.com/show_bug.cgi?id=1218620 Bug ID: 1218620 Summary: cmake: -Wl,--no-undefined breaks canokey-qemu build Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: stefan.bruens@rwth-aachen.de Reporter: lnussel@suse.com QA Contact: qa-bugs@suse.de CC: dmueller@suse.com, simonf.lees@suse.com Target Milestone: --- Found By: --- Blocker: --- The recent addition of -Wl,--no-undefined to link flags for shared libraries breaks build of the canokey-qemu package. I've tried to fix it but hit my limits wrt cmake knowledge. Advice needed. The issue here is that the package produces an actual shared library, not a module. Qemu links against it. Nevertheless AFAICT it has symbols that come from the qemu binary itself. Probably dirty but that's the way it is: https://build.opensuse.org/package/show/openSUSE:Factory/canokey-qemu Is there a way to either unset --no-undefined or adjust the cmake config there? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218620 https://bugzilla.suse.com/show_bug.cgi?id=1218620#c8 --- Comment #8 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1218620) was mentioned in https://build.opensuse.org/request/show/1139983 Factory / cmake -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218620 https://bugzilla.suse.com/show_bug.cgi?id=1218620#c9 --- Comment #9 from Stefan Brüns <stefan.bruens@rwth-aachen.de> --- (In reply to Ludwig Nussel from comment #6)
Short of a proper solution I've filed https://build.opensuse.org/request/show/1139744
Why does cmake override the default optflags anyway? If -Wl,--no-undefined is useful, shouldn't we also have it in all build systems?
Because e.g. autotools does not have separate linker flags for executables, shared libraries, and dlopen'ed modules/plugins. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1218620 https://bugzilla.suse.com/show_bug.cgi?id=1218620#c15 --- Comment #15 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1218620) was mentioned in https://build.opensuse.org/request/show/1141265 Factory / canokey-qemu -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com