aboutsummaryrefslogtreecommitdiffstats
path: root/openwrt/package/ncurses/patches
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-08-09 13:23:17 +0000
committerNicolas Thill <nico@openwrt.org>2005-08-09 13:23:17 +0000
commit19542aebfdb4f89f7408befac5360a5459bd65f4 (patch)
treee91ac054c5fac641772c23d68ce4e7ba13cd3adc /openwrt/package/ncurses/patches
parenta87dff842d42ae0cc79c13bb22e59de9ca9f0f62 (diff)
downloadupstream-19542aebfdb4f89f7408befac5360a5459bd65f4.tar.gz
upstream-19542aebfdb4f89f7408befac5360a5459bd65f4.tar.bz2
upstream-19542aebfdb4f89f7408befac5360a5459bd65f4.zip
Fix building when host and target systems are same arch
SVN-Revision: 1584
Diffstat (limited to 'openwrt/package/ncurses/patches')
-rw-r--r--openwrt/package/ncurses/patches/500-cross.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/openwrt/package/ncurses/patches/500-cross.patch b/openwrt/package/ncurses/patches/500-cross.patch
new file mode 100644
index 0000000000..9536191408
--- /dev/null
+++ b/openwrt/package/ncurses/patches/500-cross.patch
@@ -0,0 +1,24 @@
+diff -ruN ncurses-5.2-orig/aclocal.m4 ncurses-5.2-6/aclocal.m4
+--- ncurses-5.2-orig/aclocal.m4 2000-10-21 00:57:49.000000000 +0200
++++ ncurses-5.2-6/aclocal.m4 2005-08-09 14:50:15.000000000 +0200
+@@ -1919,7 +1919,7 @@
+ EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
+ fi
+ test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
+- MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $[@] .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $[@]'
++ MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $[@] .$(REL_VERSION)`.$(ABI_VERSION),-stats,$(LDFLAGS) -lc -o $[@]'
+ ;;
+ openbsd2*)
+ CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
+diff -ruN ncurses-5.2-orig/configure ncurses-5.2-6/configure
+--- ncurses-5.2-orig/configure 2000-10-21 00:58:49.000000000 +0200
++++ ncurses-5.2-6/configure 2005-08-09 14:50:25.000000000 +0200
+@@ -2660,7 +2660,7 @@
+ EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
+ fi
+ test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
+- MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
++ MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,$(LDFLAGS) -lc -o $@'
+ ;;
+ openbsd2*)
+ CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"