mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Ports: Fix cross-compiling git for serenity
No idea how this is supposed to work, because git's buildscripts execute 'uname -S' to determine which functions are available - and that's not how cross-compilation works.
This commit is contained in:
parent
e23fc195e7
commit
4100aa52d9
Notes:
sideshowbarker
2024-07-18 21:22:55 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/4100aa52d9f Pull-request: https://github.com/SerenityOS/serenity/pull/5762
2 changed files with 23 additions and 0 deletions
12
Ports/git/patches/have_no_librt.patch
Normal file
12
Ports/git/patches/have_no_librt.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- git-2.26.0/config.mak.uname.orig 2021-03-13 13:30:24.439217597 +0100
|
||||
+++ git-2.26.0/config.mak.uname 2021-03-13 13:30:32.747203874 +0100
|
||||
@@ -52,7 +52,8 @@
|
||||
HAVE_CLOCK_GETTIME = YesPlease
|
||||
HAVE_CLOCK_MONOTONIC = YesPlease
|
||||
# -lrt is needed for clock_gettime on glibc <= 2.16
|
||||
- NEEDS_LIBRT = YesPlease
|
||||
+ # But not when cross-compiling for Serenity.
|
||||
+ # NEEDS_LIBRT = YesPlease
|
||||
HAVE_GETDELIM = YesPlease
|
||||
SANE_TEXT_GREP=-a
|
||||
FREAD_READS_DIRECTORIES = UnfortunatelyYes
|
11
Ports/git/patches/have_no_sysinfo.patch
Normal file
11
Ports/git/patches/have_no_sysinfo.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- git-2.26.0/config.mak.uname.orig 2021-03-13 13:30:24.439217597 +0100
|
||||
+++ git-2.26.0/config.mak.uname 2021-03-13 13:30:32.747203874 +0100
|
||||
@@ -57,7 +57,7 @@
|
||||
HAVE_GETDELIM = YesPlease
|
||||
SANE_TEXT_GREP=-a
|
||||
FREAD_READS_DIRECTORIES = UnfortunatelyYes
|
||||
- BASIC_CFLAGS += -DHAVE_SYSINFO
|
||||
+ # BASIC_CFLAGS += -DHAVE_SYSINFO
|
||||
PROCFS_EXECUTABLE_PATH = /proc/self/exe
|
||||
endif
|
||||
ifeq ($(uname_S),GNU/kFreeBSD)
|
Loading…
Reference in a new issue