mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 04:48:55 +00:00
18 lines
425 B
Diff
18 lines
425 B
Diff
+++ ./src/vendor/Soup/build_lib.php
|
|
@@ -28,13 +28,11 @@
|
|
}
|
|
if(is_dir(__DIR__."/Intrin"))
|
|
{
|
|
- if (php_uname("m") == "aarch64"
|
|
- || php_uname("m") == "arm64" // For people who think different
|
|
- )
|
|
+ if (getenv("TARGET_ARCH") == "aarch64")
|
|
{
|
|
$clang .= " -march=armv8+crypto+crc";
|
|
}
|
|
- else
|
|
+ elseif (getenv("TARGET_ARCH") != "arm")
|
|
{
|
|
$clang .= " -maes -mpclmul -mrdrnd -mrdseed -msha -msse4.1";
|
|
}
|