fix building when CPP is set in build env
authorMike Frysinger <vapier@gentoo.org>
Tue, 28 Mar 2006 07:11:51 +0000 (07:11 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 28 Mar 2006 07:11:51 +0000 (07:11 -0000)
package/ed/ed-configure-CPP.patch [new file with mode: 0644]
package/ed/ed.mk

diff --git a/package/ed/ed-configure-CPP.patch b/package/ed/ed-configure-CPP.patch
new file mode 100644 (file)
index 0000000..fb6f489
--- /dev/null
@@ -0,0 +1,14 @@
+this old configure script has broken CPP logic is CPP is set in the
+host environment
+
+--- ed-0.2/configure
++++ ed-0.2/configure
+@@ -731,6 +731,8 @@
+ rm -f conftest*
+   ac_cv_prog_CPP="$CPP"
+ fi
++else
++  ac_cv_prog_CPP="$CPP"
+ fi
+ CPP="$ac_cv_prog_CPP"
+ echo "$ac_t""$CPP" 1>&4
index 4b2a9922b0cc5dfe950e9d269ce2282e8d9ca769..f9ed1d8a76bcd2815baa1f56cd6baecd3e720ce0 100644 (file)
@@ -19,9 +19,11 @@ $(DL_DIR)/$(ED_PATCH):
 
 ed-source: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
 
+ed-unpacked: $(ED_DIR)/.unpacked
 $(ED_DIR)/.unpacked: $(DL_DIR)/$(ED_SOURCE) $(DL_DIR)/$(ED_PATCH)
        $(ED_CAT) $(DL_DIR)/$(ED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
        toolchain/patch-kernel.sh $(ED_DIR) $(DL_DIR) $(ED_PATCH)
+       toolchain/patch-kernel.sh $(ED_DIR) package/ed/ ed-*.patch
        touch $(ED_DIR)/.unpacked
 
 $(ED_DIR)/.configured: $(ED_DIR)/.unpacked