summaryrefslogtreecommitdiff
path: root/package/ltrace/ltrace-0.5.3-configure-fixes.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-07-25 16:53:49 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-26 23:57:20 +0200
commit192c9b1829cf63704abd9736738b85a6582fd88a (patch)
tree89e4a0f8205fe04f2d09b03c754051fe500962c2 /package/ltrace/ltrace-0.5.3-configure-fixes.patch
parente49e2feda47fffb5e7a568a89d1f36615e75ce87 (diff)
ltrace: convert to gentargets and bump to 0.5.3
[Peter: remove unneeded 0.5 USE_DEMANGLE patch] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/ltrace/ltrace-0.5.3-configure-fixes.patch')
-rw-r--r--package/ltrace/ltrace-0.5.3-configure-fixes.patch128
1 files changed, 128 insertions, 0 deletions
diff --git a/package/ltrace/ltrace-0.5.3-configure-fixes.patch b/package/ltrace/ltrace-0.5.3-configure-fixes.patch
new file mode 100644
index 000000000..8d95883bc
--- /dev/null
+++ b/package/ltrace/ltrace-0.5.3-configure-fixes.patch
@@ -0,0 +1,128 @@
+Fix several issues with the configure script:
+
+ * Allow option values to contains equal signs, like
+ CC="/foo/arm-linux-gcc --sysroot=/foobar/usr"
+
+ * Parse the option before doing the tests so that CC/CFLAGS can be
+ used during the tests.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ configure | 72 +++++++++++++++++++++++++++++++-------------------------------
+ 1 file changed, 37 insertions(+), 35 deletions(-)
+
+Index: ltrace-0.5.3/configure
+===================================================================
+--- ltrace-0.5.3.orig/configure
++++ ltrace-0.5.3/configure
+@@ -6,6 +6,38 @@
+ exit 1
+ fi
+
++CC=gcc
++CPPFLAGS=' -I /usr/include/libelf'
++CFLAGS='-g -O2'
++LIBS='-lelf '
++INSTALL='/usr/bin/install -c'
++iquote='-iquote '
++iquoteend=''
++
++prefix=/usr/local
++sysconfdir='${prefix}/etc'
++bindir='${prefix}/bin'
++mandir='${prefix}/share/man'
++docdir='${prefix}/share/doc/ltrace'
++for x_option
++do
++ if test -n "$x_prev"; then
++ eval $x_prev=\$x_option
++ x_prev=
++ continue
++ fi
++ case $x_option in
++ --*=* | *=*)
++ x_var=`echo $x_option | sed 's/^--//' | sed 's/=.*//'`
++ x_val=`echo $x_option | sed 's/^[^=]*=//'`
++ eval $x_var=\"$x_val\"
++ ;;
++ --*)
++ x_prev=`echo $x_option | sed 's/^--//'`
++ ;;
++ esac
++done
++
+ echo -n "checking package name... "
+ PACKAGE_NAME='ltrace'
+ echo $PACKAGE_NAME
+@@ -30,9 +62,10 @@
+ return cplus_demangle();
+ }
+ EOF
+-if gcc conftest.c -liberty 2>/dev/null
++if $CC $CFLAGS conftest.c -liberty 2>/dev/null
+ then
+ HAVE_LIBIBERTY=1
++ LIBS="$LIBS -liberty"
+ echo "yes"
+ else
+ unset HAVE_LIBIBERTY
+@@ -48,9 +81,10 @@
+ return __cxa_demangle();
+ }
+ EOF
+-if gcc conftest.c -lsupc++ 2>/dev/null
++if $CC $CFLAGS conftest.c -lsupc++ 2>/dev/null
+ then
+ HAVE_LIBSUPC__=1
++ LIBS="$LIBS -lsupc++"
+ echo "yes"
+ else
+ unset HAVE_LIBSUPC__
+@@ -67,7 +101,7 @@
+ return 0;
+ }
+ EOF
+-if gcc conftest.c 2>/dev/null
++if $CC $CFLAGS conftest.c 2>/dev/null
+ then
+ HAVE_ELF_C_READ_MMAP=1
+ echo "yes"
+@@ -77,38 +111,6 @@
+ fi
+ rm -f conftest.c a.out
+
+-CC=gcc
+-CPPFLAGS=' -I /usr/include/libelf'
+-CFLAGS='-g -O2'
+-LIBS='-lelf -lsupc++ -liberty '
+-INSTALL='/usr/bin/install -c'
+-iquote='-iquote '
+-iquoteend=''
+-
+-prefix=/usr/local
+-sysconfdir='${prefix}/etc'
+-bindir='${prefix}/bin'
+-mandir='${prefix}/share/man'
+-docdir='${prefix}/share/doc/ltrace'
+-for x_option
+-do
+- if test -n "$x_prev"; then
+- eval $x_prev=\$x_option
+- x_prev=
+- continue
+- fi
+- case $x_option in
+- --*=* | *=*)
+- x_var=`echo $x_option | sed 's/^--//' | sed 's/=.*//'`
+- x_val=`echo $x_option | sed 's/^.*=//'`
+- eval $x_var=$x_val
+- ;;
+- --*)
+- x_prev=`echo $x_option | sed 's/^--//'`
+- ;;
+- esac
+-done
+-
+ echo "configure: creating Makefile"
+ #
+ # Makefile.in -> Makefile