mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 13:42:37 +00:00
- Fixes https://github.com/termux/termux-packages/issues/26126 > [!WARNING] > robertkirkman has detected the presence of [CRLF line endings](https://en.wikipedia.org/wiki/Newline#Issues_with_different_newline_formats) in this software. > Unfortunately, CRLF is something that robertkirkman is unable to work effectively with, so robertkirkman must always use the `dos2unix` command to purge all instances of CRLF from their projects before doing anything else, and unfortunately robertkirkman cannot develop in the same repositories as users who need to use CRLF. > If this is not acceptable to other maintainers of the `libpluto` package, then unfortunately robertkirkman cannot directly help maintain the `libpluto` package (but CRLF users are free to copy and paste robertkirkman's patches, convert them back to CRLF, and use them in any way they like)
25 lines
522 B
Diff
25 lines
522 B
Diff
--- a/scripts/common.php
|
|
+++ b/scripts/common.php
|
|
@@ -63,12 +63,20 @@ function check_compiler()
|
|
}
|
|
}
|
|
}
|
|
+ if (getenv("CXXFLAGS"))
|
|
+ {
|
|
+ $compiler .= " ".getenv("CXXFLAGS");
|
|
+ }
|
|
}
|
|
|
|
function get_link_flags()
|
|
{
|
|
global $is_windows_target;
|
|
- $flags = " -L".__DIR__."/../src/vendor/Soup -lsoup";
|
|
+ $srcdir = __DIR__."/../src";
|
|
+ $flags .= " -L$srcdir/vendor/Soup -L$srcdir -lsoup";
|
|
+ if (getenv("LDFLAGS")) {
|
|
+ $flags .= " ".getenv("LDFLAGS");
|
|
+ }
|
|
if ($is_windows_target)
|
|
{
|
|
$flags .= " -lws2_32 -lbcrypt";
|