[systemd-devel] [RFC 25/25] add -z muldefs to linker flags

David Herrmann dh.herrmann at gmail.com
Thu Sep 18 15:34:20 PDT 2014


Hi

On Thu, Sep 18, 2014 at 3:25 PM, Emil Renner Berthing <systemd at esmil.dk> wrote:
> In case we don't have the new gold linker,
> linking with ld fails without this option.
> ---
>  configure.ac | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configure.ac b/configure.ac
> index 3f17833..4be6e08 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -216,6 +216,7 @@ CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
>          -Wl,--gc-sections \
>          -Wl,-z,relro \
>          -Wl,-z,now \
> +        -Wl,-z,muldefs \

Where exactly is that needed? I don't think this is the right fix. We
avoid multiple definitions wherever we can, so please either include
the culprit in the commit-message or fix them directly.

Thanks
David

>          -pie \
>          -Wl,-fuse-ld=gold])
>  AC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
> --
> 2.1.0
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list