mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 19:32:06 -05:00
8545bd5fdb
With this patch, ed's configure script will not override CC and *FLAGS if they are not unset.
21 lines
524 B
Diff
21 lines
524 B
Diff
--- 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
|