[PATCH 1 of 3] configure: check for libstdc++.{so,dylib,a}
Bryan Hundven
bryanhundven@gmail.com
Tue May 31 14:35:00 GMT 2011
On Tue, May 31, 2011 at 5:13 AM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> # HG changeset patch
> # User Bryan Hundven <bryanhundven@gmail.com>
> # Date 1306816723 25200
> # Node ID 94a989d4e73b60775a1bfcfb0fc05790017f165d
> # Parent fa3a18f9abcf9dde1535088554778fe4c4e5e831
> configure: check for libstdc++.{so,dylib,a}
>
> It's probably a good thing to check for {so,dylib,a} during configure
> time. They are needed by the companion libraries and gcc.
>
> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
> [yann.morin.1998@anciens.enib.fr: add check for .a, rename var to *cxx]
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
>
> diff --git a/configure b/configure
> --- a/configure
> +++ b/configure
> @@ -429,6 +429,13 @@
> has_or_abort lib="${ncurses_libs}" \
> err="'ncurses' library was not found"
>
> +stdcxx_libs="$( for x in so dylib a; do \
> + printf "libstdc++.$x "; \
> + done \
> + )"
> +has_or_abort lib="${stdcxx_libs}" \
> + err="'libstdc++' shared library was not found"
> +
I don't get it. Why 'has_or_abort' and 'has_or_warn' for libstdc++.a.
In my patch series, I did 'has_or_abort' for {so,dylib}, but
'has_or_warn' for libstdc++.a as missing .a is only a warning and a
kconfig option enabled or disabled.
> #---------------------------------------------------------------------
> # Compute the version string
>
>
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list