[PATCH] configure: check for libstdc++ and zlib, dynamic and static
Bryan Hundven
bryanhundven@gmail.com
Fri Jan 21 23:09:00 GMT 2011
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
More information about the crossgcc
mailing list