summaryrefslogtreecommitdiff
path: root/Ports/ed
diff options
context:
space:
mode:
authorroytam1 <roytam@gmail.com>2021-08-10 00:37:14 +0800
committerGunnar Beutner <gunnar@beutner.name>2021-08-11 08:41:17 +0200
commit8545bd5fdbd14e26a0f3f6f3f36c2a46da4f0ed8 (patch)
tree88a7f23018f61a9790b650c4dc30eb2b5249f68e /Ports/ed
parentb1bc5532e7ec5b3b42822b84fe57d8e79c3c3ee8 (diff)
downloadserenity-8545bd5fdbd14e26a0f3f6f3f36c2a46da4f0ed8.zip
Ports/ed: Make the configure script use the target toolchain
With this patch, ed's configure script will not override CC and *FLAGS if they are not unset.
Diffstat (limited to 'Ports/ed')
-rw-r--r--Ports/ed/patches/fix-configure.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/Ports/ed/patches/fix-configure.patch b/Ports/ed/patches/fix-configure.patch
new file mode 100644
index 0000000000..ab9ac10a99
--- /dev/null
+++ b/Ports/ed/patches/fix-configure.patch
@@ -0,0 +1,21 @@
+--- ed-1.15/configure.old 2021-08-10 00:18:06.612959086 +0800
++++ ed-1.15/configure 2021-08-10 00:18:31.035115395 +0800
+@@ -19,14 +19,14 @@
+ bindir='$(exec_prefix)/bin'
+ datarootdir='$(prefix)/share'
+ infodir='$(datarootdir)/info'
+ mandir='$(datarootdir)/man'
+ program_prefix=
+-CC=gcc
+-CPPFLAGS=
+-CFLAGS='-Wall -W -O2'
+-LDFLAGS=
++CC=${CC-gcc}
++CPPFLAGS=${CPPFLAGS-}
++CFLAGS=${CFLAGS-"-Wall -W -O2"}
++LDFLAGS=${LDFLAGS-}
+
+ # checking whether we are using GNU C.
+ /bin/sh -c "${CC} --version" > /dev/null 2>&1 ||
+ {
+ CC=cc