diff options
Diffstat (limited to 'meta-oe/recipes-devtools/ltrace/files/ltrace-compile.patch')
| -rw-r--r-- | meta-oe/recipes-devtools/ltrace/files/ltrace-compile.patch | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/files/ltrace-compile.patch b/meta-oe/recipes-devtools/ltrace/files/ltrace-compile.patch new file mode 100644 index 0000000000..4784deb6df --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/files/ltrace-compile.patch | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | Index: ltrace-0.5.3/common.h | ||
| 2 | =================================================================== | ||
| 3 | --- ltrace-0.5.3.orig/common.h 2009-10-23 23:13:45.700282578 -0700 | ||
| 4 | +++ ltrace-0.5.3/common.h 2009-10-23 23:14:13.550371553 -0700 | ||
| 5 | @@ -1,3 +1,5 @@ | ||
| 6 | +#ifndef COMMON_H | ||
| 7 | +#define COMMON_H | ||
| 8 | #include <sys/types.h> | ||
| 9 | #include <sys/time.h> | ||
| 10 | #include <stdio.h> | ||
| 11 | @@ -251,3 +253,5 @@ extern void * sym2addr(Process *, struct | ||
| 12 | #if 0 /* not yet */ | ||
| 13 | extern int umoven(Process * proc, void * addr, int len, void * laddr); | ||
| 14 | #endif | ||
| 15 | +#endif | ||
| 16 | + | ||
| 17 | Index: ltrace-0.5.3/configure | ||
| 18 | =================================================================== | ||
| 19 | --- ltrace-0.5.3.orig/configure 2009-10-23 23:13:45.630316494 -0700 | ||
| 20 | +++ ltrace-0.5.3/configure 2009-10-23 23:13:59.672869527 -0700 | ||
| 21 | @@ -30,7 +30,7 @@ int main () { | ||
| 22 | return cplus_demangle(); | ||
| 23 | } | ||
| 24 | EOF | ||
| 25 | -if gcc conftest.c -liberty 2>/dev/null | ||
| 26 | +if $CC conftest.c -liberty 2>/dev/null | ||
| 27 | then | ||
| 28 | HAVE_LIBIBERTY=1 | ||
| 29 | echo "yes" | ||
| 30 | @@ -48,7 +48,7 @@ int main () { | ||
| 31 | return __cxa_demangle(); | ||
| 32 | } | ||
| 33 | EOF | ||
| 34 | -if gcc conftest.c -lsupc++ 2>/dev/null | ||
| 35 | +if $CC conftest.c -lsupc++ 2>/dev/null | ||
| 36 | then | ||
| 37 | HAVE_LIBSUPC__=1 | ||
| 38 | echo "yes" | ||
| 39 | @@ -67,7 +67,7 @@ int main () { | ||
| 40 | return 0; | ||
| 41 | } | ||
| 42 | EOF | ||
| 43 | -if gcc conftest.c 2>/dev/null | ||
| 44 | +if $CC conftest.c 2>/dev/null | ||
| 45 | then | ||
| 46 | HAVE_ELF_C_READ_MMAP=1 | ||
| 47 | echo "yes" | ||
| 48 | @@ -77,15 +77,12 @@ else | ||
| 49 | fi | ||
| 50 | rm -f conftest.c a.out | ||
| 51 | |||
| 52 | -CC=gcc | ||
| 53 | -CPPFLAGS=' -I /usr/include/libelf' | ||
| 54 | CFLAGS='-g -O2' | ||
| 55 | LIBS='-lelf -lsupc++ -liberty ' | ||
| 56 | -INSTALL='/usr/bin/install -c' | ||
| 57 | +INSTALL='install -c' | ||
| 58 | iquote='-iquote ' | ||
| 59 | iquoteend='' | ||
| 60 | |||
| 61 | -prefix=/usr/local | ||
| 62 | sysconfdir='${prefix}/etc' | ||
| 63 | bindir='${prefix}/bin' | ||
| 64 | mandir='${prefix}/share/man' | ||
| 65 | Index: ltrace-0.5.3/debug.h | ||
| 66 | =================================================================== | ||
| 67 | --- ltrace-0.5.3.orig/debug.h 2009-10-23 23:13:45.670276809 -0700 | ||
| 68 | +++ ltrace-0.5.3/debug.h 2009-10-23 23:14:26.440319785 -0700 | ||
| 69 | @@ -1,3 +1,5 @@ | ||
| 70 | +#ifndef DEBUG_H | ||
| 71 | +#define DEBUG_H | ||
| 72 | #include <features.h> | ||
| 73 | |||
| 74 | /* debug levels: | ||
| 75 | @@ -14,4 +16,4 @@ void debug_(int level, const char *file, | ||
| 76 | int xinfdump(long, void *, int); | ||
| 77 | |||
| 78 | # define debug(level, expr...) debug_(level, __FILE__, __LINE__, expr) | ||
| 79 | - | ||
| 80 | +#endif | ||
