-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tools/depends][target] zlib patch fix android NDK 26+failure
Patch proposed upstream to fix the following issue ld.lld: error: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined clang: error: linker command failed with exit code 1 (use -v to see invocation) Upstream issue: madler/zlib#856 Upstream patch: madler/zlib#865
- Loading branch information
fuzzard
committed
Dec 24, 2023
1 parent
5892a29
commit b13aff9
Showing
2 changed files
with
17 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/gzlib.c | ||
+++ b/gzlib.c | ||
@@ -579,4 +579,9 @@ unsigned ZLIB_INTERNAL gz_intmax(void) { | ||
} while (p > q); | ||
return q >> 1; | ||
} | ||
+#else | ||
+unsigned ZLIB_INTERNAL gz_intmax() | ||
+{ | ||
+ return INT_MAX; | ||
+} | ||
#endif |
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