mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-31 21:22:27 +00:00
24 lines
503 B
Diff
24 lines
503 B
Diff
+++ ./scripts/common.php
|
|
@@ -44,12 +44,20 @@ function check_compiler()
|
|
}
|
|
}
|
|
}
|
|
+ if (getenv("CXXFLAGS"))
|
|
+ {
|
|
+ $compiler .= " ".getenv("CXXFLAGS");
|
|
+ }
|
|
}
|
|
|
|
function prepare_link()
|
|
{
|
|
global $compiler;
|
|
- $compiler .= " -L".__DIR__."/../src/vendor/Soup -lsoup";
|
|
+ $srcdir = __DIR__."/../src";
|
|
+ $compiler .= " -L$srcdir/vendor/Soup -L$srcdir -lsoup";
|
|
+ if (getenv("LDFLAGS")) {
|
|
+ $compiler .= " ".getenv("LDFLAGS");
|
|
+ }
|
|
}
|
|
|
|
function resolve_installed_program($exe)
|