diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-17 13:21:56 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-06-17 13:21:56 +0000 |
commit | 9a236415c392142410340aaa3d3965793898cecd (patch) | |
tree | 77c87043407761be2a782c3a337fcabc7b5fa2b6 /patches/dmalloc | |
parent | aa8a936a1d6ae1cd2ab21b9bf340cdd401c1f1bc (diff) | |
download | crosstool-ng-9a236415c392142410340aaa3d3965793898cecd.tar.gz crosstool-ng-9a236415c392142410340aaa3d3965793898cecd.tar.bz2 crosstool-ng-9a236415c392142410340aaa3d3965793898cecd.zip |
Fix building dmalloc in case strdup is a macro (uncaught when x-compiling certain targets).
/trunk/patches/dmalloc/5.5.2/500-strdup_macro.patch | 39 39 0 0 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Diffstat (limited to 'patches/dmalloc')
-rw-r--r-- | patches/dmalloc/5.5.2/500-strdup_macro.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/patches/dmalloc/5.5.2/500-strdup_macro.patch b/patches/dmalloc/5.5.2/500-strdup_macro.patch new file mode 100644 index 00000000..4974d140 --- /dev/null +++ b/patches/dmalloc/5.5.2/500-strdup_macro.patch @@ -0,0 +1,39 @@ +--- dmalloc-5.5.2.orig/configure 2008-06-17 13:10:09.000000000 +0200 ++++ dmalloc-5.5.2/configure 2008-06-17 13:11:25.000000000 +0200 +@@ -4691,8 +4691,35 @@ + echo "$as_me:$LINENO: checking strdup macro" >&5 + echo $ECHO_N "checking strdup macro... $ECHO_C" >&6 + if test "$cross_compiling" = yes; then +- ac_cv_strdup_macro=no ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++#if HAVE_STDLIB_H ++# include <string.h> ++#endif ++ ++#ifndef strdup ++ choke me ++#endif + ++main() { exit(0); } ++ ++_ACEOF ++rm -f conftest.o conftest.obj ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; then ++ ac_cv_strdup_macro=yes ++else ++ ac_cv_strdup_macro=no ++fi ++ + else + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ |