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]

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


 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"
+
+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
 

--
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]