Files
termux-packages/packages/libpluto/scripts-common.php.patch
termux-pacman-bot 8b1452271b bump(main/libpluto): 0.12.1
- 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)
2025-10-14 16:41:21 +00:00

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";