-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
104 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff -uNr src/binutils-2.38/ld/ldelf.c src/binutils-2.38/ld/ldelf.c.patch | ||
--- src/binutils-2.38/ld/ldelf.c 2022-01-22 15:14:09.000000000 +0300 | ||
+++ src/binutils-2.38/ld/ldelf.c.patch 2022-07-10 23:24:40.326945641 +0300 | ||
@@ -131,7 +131,7 @@ | ||
/* On Linux, it's possible to have different versions of the same | ||
shared library linked against different versions of libc. The | ||
dynamic linker somehow tags which libc version to use in | ||
- /etc/ld.so.cache, and, based on the libc that it sees in the | ||
+ /data/data/com.termux/files/usr/glibc/etc/ld.so.cache, and, based on the libc that it sees in the | ||
executable, chooses which version of the shared library to use. | ||
|
||
We try to do a similar check here by checking whether this shared | ||
@@ -756,8 +756,8 @@ | ||
return ldelf_search_needed (ld_elf_hints, &needed, force, false, elfsize); | ||
} | ||
|
||
-/* For a native linker, check the file /etc/ld.so.conf for directories | ||
- in which we may find shared libraries. /etc/ld.so.conf is really | ||
+/* For a native linker, check the file /data/data/com.termux/files/usr/glibc/etc/ld.so.conf for directories | ||
+ in which we may find shared libraries. /data/data/com.termux/files/usr/glibc/etc/ld.so.conf is really | ||
only meaningful on Linux. */ | ||
|
||
struct ldelf_ld_so_conf | ||
@@ -930,12 +930,12 @@ | ||
|
||
info.path = NULL; | ||
info.len = info.alloc = 0; | ||
- tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf", | ||
+ tmppath = concat (ld_sysroot, prefix, "/data/data/com.termux/files/usr/glibc/etc/ld.so.conf", | ||
(const char *) NULL); | ||
if (!ldelf_parse_ld_so_conf (&info, tmppath)) | ||
{ | ||
free (tmppath); | ||
- tmppath = concat (ld_sysroot, "/etc/ld.so.conf", | ||
+ tmppath = concat (ld_sysroot, "/data/data/com.termux/files/usr/glibc/etc/ld.so.conf", | ||
(const char *) NULL); | ||
ldelf_parse_ld_so_conf (&info, tmppath); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- libtool/libtool 2022-07-11 10:55:46.541316304 +0300 | ||
+++ libtool/libtool.patch 2022-07-11 11:01:31.801316173 +0300 | ||
@@ -1,4 +1,4 @@ | ||
-#! /bin/sh | ||
+#! /data/data/com.termux/files/usr/bin/sh | ||
# Generated automatically by config.status (libtool) 2.4.7-dirty | ||
# NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
|
||
@@ -65,7 +65,7 @@ | ||
shared_archive_member_spec= | ||
|
||
# Shell to use when invoking shell scripts. | ||
-SHELL="/bin/sh" | ||
+SHELL="/data/data/com.termux/files/usr/bin/sh" | ||
|
||
# An echo program that protects backslashes. | ||
ECHO="printf %s\\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- libtool/libtoolize.in 2022-07-11 10:54:34.621316332 +0300 | ||
+++ libtool/libtoolize.in.patch 2022-07-11 11:04:43.491316099 +0300 | ||
@@ -1,4 +1,4 @@ | ||
-#! /usr/bin/env sh | ||
+#! /data/data/com.termux/files/usr/bin/env sh | ||
|
||
# Prepare a package to use libtool. | ||
# Written by Gary V. Vaughan <gary@gnu.org>, 2003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters