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: [crosstool-ng] Small question and mini-patch


                                          [RESEND: Due to bounce from ML]
Yann E. MORIN wrote, on 09/26/2008 11:50 AM:
> On Thursday 25 September 2008 22:22:24 Joachim Nilsson wrote:
>> Now, the question.  Is it just me or does anyone else find a cross-ldd
>> tool to be useful for the host?  
> Do you by chance know how to generate one? ;-)

Hi again,

Take a look at the included patch.  It's not the full solution, as have been
discussed previously on this list, but maybe useful to some.

Regards
 /Joachim
Index: scripts/build/libc/uClibc.sh
===================================================================
--- scripts/build/libc/uClibc.sh	(revision 1208)
+++ scripts/build/libc/uClibc.sh	(working copy)
@@ -143,6 +143,14 @@
          ${CT_LIBC_UCLIBC_VERBOSITY}    \
          install
 
+    # Build and install host-side ldd
+    CT_DoLog EXTRA "Installing C library"
+    CT_DoExecLog ALL                    \
+    make PREFIX="${CT_SYSROOT_DIR}/"    \
+         ${CT_LIBC_UCLIBC_VERBOSITY}    \
+	 -C utils hostutils
+    CT_DoExecLog ALL cp utils/ldd.host "${CT_PREFIX_DIR}/bin/${CT_TARGET}"-ldd
+
     CT_EndStep
 }
 

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