This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] configure: check for libstdc++ and zlib, dynamic and static


Yann,

On Fri, Jan 21, 2011 at 3:02 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> Âconfigure | Â20 ++++++++++++++++++++
> Â1 files changed, 20 insertions(+), 0 deletions(-)
>
>
> # HG changeset patch
> # User Bryan Hundven <bryanhundven@gmail.com>
> # Date 1295650869 28800
> # Node ID 7944bd5f3a8d184d440437b247b73ab7e2c00c02
> # Parent Â1e73ceb6ecb81b9dc4171ad65c57e5c5be4ecb76
> configure: check for libstdc++ and zlib, dynamic and static
>
> Debian packages both static and dynamic libraries in their -dev package,
> but Fedora packages them seperately.
>
> Normal builds need libstdc++.a, and static toolchains require libz.a to
> be installed on the host.
>
> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
>
> diff -r 1e73ceb6ecb8 -r 7944bd5f3a8d configure
> --- a/configure Fri Jan 14 18:36:07 2011 +0100
> +++ b/configure Fri Jan 21 15:01:09 2011 -0800
> @@ -383,6 +383,26 @@
> Âhas_or_abort lib="${ncurses_libs}" Â Â Â Â Â Â Â Â Â\
> Â Â Â Â Â Â Âerr="'ncurses' library was not found"
>
> +stdcpp_shared_libs="$( for x in so dylib; do    \
> + Â Â Â Â Â Â Â Â Â Â Â Â Â printf "libstdc++.$x "; \
> +            done            Â\
> + Â Â Â Â Â Â Â Â Â Â )"
> +has_or_abort lib="${stdcpp_shared_libs}" \
> + Â Â Â Â Â Â err="'libstdc++' shared library was not found"
> +
> +has_or_abort lib="libstdc++.a" \
> + Â Â Â Â Â Â err="'libstdc++' shared library was not found"

This line should err with: 'libstdc++' static library was not found
You can fix this if you want, or I can send in a new patch.
Let me know what you want to do.

> +
> +zlib_shared_libs="$( for x in so dylib; do Â\
> + Â Â Â Â Â Â Â Â Â Â Â Â printf "libz.$x "; \
> +           done          \
> + Â Â Â Â Â Â Â Â Â )"
> +has_or_abort lib="${zlib_shared_libs}" \
> + Â Â Â Â Â Â err="'zlib' shared library was not found"
> +
> +has_or_abort lib="libz.a" \
> + Â Â Â Â Â Â err="'zlib' static library was not found"
> +
> Â#---------------------------------------------------------------------
> Â# Compute the version string
>
>

-Bryan

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]