M7350/oe-core/meta/recipes-extended/ed/ed-1.6/ed-1.2-build.patch

44 lines
1.1 KiB
Diff
Raw Normal View History

2024-09-09 08:52:07 +00:00
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>
Upstream-Status: Pending
Index: ed-1.5/configure
===================================================================
--- ed-1.5.orig/configure 2010-08-30 07:34:49.000000000 -0700
+++ ed-1.5/configure 2010-11-20 16:42:20.490645823 -0800
@@ -26,10 +26,6 @@
mandir='$(datadir)/man'
sysconfdir='$(prefix)/etc'
program_prefix=
-CC=
-CPPFLAGS=
-CFLAGS='-Wall -W -O2'
-LDFLAGS=
# Loop over all args
while [ -n "$1" ] ; do
@@ -105,6 +101,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 [ -z "${srcdir}" ] ; then