aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2010-11-19 08:00:36 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-22 10:25:34 +0000
commite101a71e1b5c881d23346f5aca2b53da6f649278 (patch)
tree3608cc9977cbabfe0393db7a96e76f79cba95311 /meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch
parent32860b9e619f2ddc05ec4089f01256a5f816fa16 (diff)
downloadopenembedded-core-contrib-e101a71e1b5c881d23346f5aca2b53da6f649278.tar.gz
ed: Update to 1.5
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Diffstat (limited to 'meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch')
-rw-r--r--meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch b/meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch
new file mode 100644
index 0000000000..a65c433d57
--- /dev/null
+++ b/meta/recipes-extended/ed/ed-1.5/ed-1.2-build.patch
@@ -0,0 +1,43 @@
+http://lists.gnu.org/archive/html/bug-ed/2008-12/msg00001.html
+
+2007-04-16 Mike Frysinger <vapier@gentoo.org>
+
+ * Do not set CC/CXX/CPPFLAGS/LDFLAGS to "" so that user can
+ override if they so choose.
+ * Only set CFLAGS/CXXFLAGS if user did not specify any.
+
+ed had already taken GPLv3 when this patch out, so it should be GPLv3.
+Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
+
+Index: ed-1.4/configure
+===================================================================
+--- ed-1.4.orig/configure 2009-07-10 19:54:33.000000000 +0800
++++ ed-1.4/configure 2010-08-05 17:41:51.000000000 +0800
+@@ -26,12 +26,6 @@
+ mandir='$(datadir)/man'
+ sysconfdir='$(prefix)/etc'
+ program_prefix=
+-CC=
+-CXX=
+-CPPFLAGS=
+-CFLAGS='-Wall -W -O2'
+-CXXFLAGS='-Wall -W -O2'
+-LDFLAGS=
+
+ # Loop over all args
+ while [ x"$1" != x ] ; do
+@@ -111,6 +105,14 @@
+ esac
+ done
+
++# Defaults if the user did not select any
++if [ x"${CFLAGS+set}" != xset ] ; then
++ CFLAGS='-Wall -W -O2'
++fi
++if [ x"${CXXFLAGS+set}" != xset ] ; then
++ CXXFLAGS='-Wall -W -O2'
++fi
++
+ # Find the source files, if location was not specified.
+ srcdirtext=
+ if [ x"${srcdir}" = x ] ; then