mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
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.
This commit is contained in:
parent
b1bc5532e7
commit
8545bd5fdb
Notes:
sideshowbarker
2024-07-18 07:07:20 +09:00
Author: https://github.com/roytam1 Commit: https://github.com/SerenityOS/serenity/commit/8545bd5fdbd Pull-request: https://github.com/SerenityOS/serenity/pull/9306 Reviewed-by: https://github.com/linusg
1 changed files with 21 additions and 0 deletions
21
Ports/ed/patches/fix-configure.patch
Normal file
21
Ports/ed/patches/fix-configure.patch
Normal file
|
@ -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
|
Loading…
Reference in a new issue