1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/dmalloc/5.5.2/100-use-xtools.patch Sat May 02 22:21:53 2009 +0000
1.3 @@ -0,0 +1,58 @@
1.4 +This patch makes configure use the cross ld and ar rather than the native tools.
1.5 +
1.6 +It was build up by Yann E. MORIN <yann.morin.1998@anciens.enib.fr> from some
1.7 +bits gathered from buildroot, which is LGPL v2.1
1.8 +License for dmalloc is:
1.9 + * Permission to use, copy, modify, and distribute this software for
1.10 + * any purpose and without fee is hereby granted, provided that the
1.11 + * above copyright notice and this permission notice appear in all
1.12 + * copies, and that the name of Gray Watson not be used in advertising
1.13 + * or publicity pertaining to distribution of the document or software
1.14 + * without specific, written prior permission.
1.15 + *
1.16 + * Gray Watson makes no representations about the suitability of the
1.17 + * software described herein for any purpose. It is provided "as is"
1.18 + * without express or implied warranty.
1.19 +
1.20 +I personnaly believe that the resulting code should therefore be
1.21 +LGPL v2.1, but don't believe me, ask your lawyers!
1.22 +
1.23 +diff -dur dmalloc-5.5.2.orig/configure dmalloc-5.5.2/configure
1.24 +--- dmalloc-5.5.2.orig/configure 2007-05-14 19:26:14.000000000 +0200
1.25 ++++ dmalloc-5.5.2/configure 2007-05-18 11:38:25.000000000 +0200
1.26 +@@ -4418,14 +4418,14 @@
1.27 + (exit $ac_status); }; }; then
1.28 +
1.29 + # so now we try to create an archive from the compiled .o file
1.30 +- (ar cr conftest.a conftest.o) 2>&5
1.31 ++ (${AR} cr conftest.a conftest.o) 2>&5
1.32 + # see which shared-library ld commands work
1.33 + #
1.34 + # Darwin/Mac OS X - Terry Teague
1.35 + # username terry_teague at domain users.sourceforge.net
1.36 + ac_cv_shared_lib_link_objs=no
1.37 + if test `uname` = "Darwin"; then
1.38 +- if (ld -dylib -o conftest.so.t -lc conftest.a) 2>&5; then
1.39 ++ if (${LD} -dylib -o conftest.so.t -lc conftest.a) 2>&5; then
1.40 + # By convention on some platforms
1.41 + # libLLL.so, libLLL.X.so are symlinks to libLLL.X.Y.Z.so
1.42 + # where X.Y.Z is version # (major.minor.increment) of the library
1.43 +@@ -4443,12 +4443,12 @@
1.44 + ac_cv_shared_link_args='# Could not configure shlib linking'
1.45 + enable_shlib=no
1.46 + fi
1.47 +- elif (ld -shared --whole-archive -soname conftest.so -o conftest.so.t conftest.a) 2>&5; then
1.48 +- ac_cv_shared_link_args='ld -shared --whole-archive -soname $@ -o $@.t'
1.49 +- elif (ld -shared -o conftest.so.t -all -soname conftest.so.t -none -lc -all conftest.a) 2>&5; then
1.50 +- ac_cv_shared_link_args='ld -shared -o $@.t -all -soname $@ -none -lc -all'
1.51 +- elif (ld -G -o conftest.so.t conftest.a) 2>&5; then
1.52 +- ac_cv_shared_link_args='ld -G -o $@.t'
1.53 ++ elif (${LD} -shared --whole-archive -soname conftest.so -o conftest.so.t conftest.a) 2>&5; then
1.54 ++ ac_cv_shared_link_args="${LD}"' -shared --whole-archive -soname $@ -o $@.t'
1.55 ++ elif (${LD} -shared -o conftest.so.t -all -soname conftest.so.t -none -lc -all conftest.a) 2>&5; then
1.56 ++ ac_cv_shared_link_args="${LD}"' -shared -o $@.t -all -soname $@ -none -lc -all'
1.57 ++ elif (${LD} -G -o conftest.so.t conftest.a) 2>&5; then
1.58 ++ ac_cv_shared_link_args="${LD}"' -G -o $@.t'
1.59 + else
1.60 + # oh well, toss an error
1.61 + ac_cv_shared_link_args='# Could not configure shlib linking'