[patch] PR40134, use a linker script on arm-linux to link with -lgcc_s -lgcc
Jakub Jelinek
jakub@redhat.com
Fri Jul 10 07:36:00 GMT 2009
On Fri, Jul 10, 2009 at 08:01:45AM +0200, Matthias Klose wrote:
> H.J. mentioned not to bother with the dfp library for now. Is the current patch
> good enough for mainline?
>
> Matthias
>
> Index: gcc.c
> ===================================================================
> --- a/src/gcc/gcc.c (revision 149315)
> +++ b/src/gcc/gcc.c (working copy)
> @@ -1686,13 +1686,21 @@
> "}"
> #ifdef LINK_EH_SPEC
> "%{shared:"
> +#ifdef ENABLE_SHARED_LIBGCC
What are these #ifdefs good for?
Isn't the whole init_gcc_specs routine wrapped in
#if defined(ENABLE_SHARED_LIBGCC) && !defined(REAL_LIBGCC_SPEC)
?
> + "%{shared-libgcc:", shared_name, " ", static_name, "}"
> +#else
> "%{shared-libgcc:", shared_name, "}"
> +#endif
> "%{!shared-libgcc:", static_name, "}"
> "}"
> #else
> +#ifdef ENABLE_SHARED_LIBGCC
> + "%{shared:", shared_name, " ", static_name, "}"
> +#else
> "%{shared:", shared_name, "}"
> #endif
> #endif
> +#endif
> "}}", NULL);
>
> obstack_grow (obstack, buf, strlen (buf));
Jakub
More information about the Java-patches
mailing list