GNOME Bugzilla – Bug 727479
-Wl,-z,defs triggers undefined references on OpenBSD
Last modified: 2014-04-29 18:36:25 UTC
Hi. By default rygel builds the plugins with: RYGEL_PLUGIN_LINKER_FLAGS="-module -avoid-version -Wl,-z,defs" This fails on OpenBSD with: <...> undefined reference to `__stack_smash_handler' undefined reference to `strerror' undefined reference to `lseek' On OpenBSD, shared libs and modules are not linked to libc and so -Wl,-z,defs will trigger these undefined references. Is there any reason we must use this flag? I could always send a patch to make it conditional on OpenBSD but I wanted the developers though first :-) Thank you.
Hi. Any opinion or can I cook a patch to drop -Wl,-z,defs ?
Will have a look and get back to you
Created attachment 275440 [details] [review] build: Remove -Wl,-z,defs Was added by accident and seems to cause problems on some platforms Signed-off-by: Jens Georg <mail@jensge.org>
Attachment 275440 [details] pushed as 0483d5f - build: Remove -Wl,-z,defs