summaryrefslogtreecommitdiffstats
path: root/patches/dialog-1.1-20100428
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electroncic.com>2010-11-04 19:13:18 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-11-04 19:15:16 +0100
commitd663de2afbbf2b5ed609637840d8e250958c84ce (patch)
tree1a661e66a4a61fb33dcedf812a8eac10fc51bd9a /patches/dialog-1.1-20100428
parent1f5f967374690b6d61a3da5d0893edb818222cbe (diff)
downloadptxdist-d663de2afbbf2b5ed609637840d8e250958c84ce.tar.gz
ptxdist-d663de2afbbf2b5ed609637840d8e250958c84ce.tar.xz
dialog: fix cross-compilation
Signed-off-by: Alexander Stein <alexander.stein@systec-electroncic.com> [mkl: make it a minimal patch] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'patches/dialog-1.1-20100428')
-rw-r--r--patches/dialog-1.1-20100428/0001-HACK-configure-don-t-look-in-lib-for-libraries.patch69
-rw-r--r--patches/dialog-1.1-20100428/series3
2 files changed, 72 insertions, 0 deletions
diff --git a/patches/dialog-1.1-20100428/0001-HACK-configure-don-t-look-in-lib-for-libraries.patch b/patches/dialog-1.1-20100428/0001-HACK-configure-don-t-look-in-lib-for-libraries.patch
new file mode 100644
index 000000000..d963fd8f3
--- /dev/null
+++ b/patches/dialog-1.1-20100428/0001-HACK-configure-don-t-look-in-lib-for-libraries.patch
@@ -0,0 +1,69 @@
+From: Alexander Stein <alexander.stein@systec-electroncic.com>
+Date: Thu, 4 Nov 2010 19:01:43 +0100
+Subject: [PATCH] HACK: configure: don't look in /lib for libraries
+
+This patch fixes cross compilation. The configure script tries to add /lib
+to LDPATH so ld tries to link with a wrong libncurses.so which results in
+the following error message in config.log:
+/lib/libncurses.so: file not recognized: File format not recognized
+
+Also notice the linker warning:
+arm-none-linux-gnueabi/bin/ld: warning: library search path "/lib" is
+unsafe for cross-compilation
+
+Signed-off-by: Alexander Stein <alexander.stein@systec-electroncic.com>
+
+[mkl: make it a minimal patch]
+
+I'm just modifying configure here, because it still uses autoconf-2.13
+which is incompatible with recent autoconf versions.
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+---
+ configure | 30 ------------------------------
+ 1 files changed, 0 insertions(+), 30 deletions(-)
+
+diff --git a/configure b/configure
+index 8ceb1d5..3baba0b 100755
+--- a/configure
++++ b/configure
+@@ -10999,36 +10999,6 @@ fi
+ fi
+
+ ;;
+-linux*) # Suse Linux does not follow /usr/lib convention
+-
+-if test -n "/lib" ; then
+- for cf_add_libdir in /lib
+- do
+- if test $cf_add_libdir = /usr/lib ; then
+- :
+- elif test -d $cf_add_libdir
+- then
+- cf_have_libdir=no
+- if test -n "$LDFLAGS$LIBS" ; then
+- # a loop is needed to ensure we can add subdirs of existing dirs
+- for cf_test_libdir in $LDFLAGS $LIBS ; do
+- if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+- cf_have_libdir=yes; break
+- fi
+- done
+- fi
+- if test "$cf_have_libdir" = no ; then
+- test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+-
+-echo "${as_me-configure}:11023: testing adding $cf_add_libdir to library-path ..." 1>&5
+-
+- LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+- fi
+- fi
+- done
+-fi
+-
+- ;;
+ sunos3*|sunos4*)
+ if test -d /usr/5lib ; then
+
+--
+1.7.2.3
+
diff --git a/patches/dialog-1.1-20100428/series b/patches/dialog-1.1-20100428/series
new file mode 100644
index 000000000..884c7e9a1
--- /dev/null
+++ b/patches/dialog-1.1-20100428/series
@@ -0,0 +1,3 @@
+# generated by git-ptx-patches
+0001-HACK-configure-don-t-look-in-lib-for-libraries.patch
+# 0d4f740d9fcc5708ed65bd4d8cf95b16 - git-ptx-patches magic