DomBlack / php-scrypt

A PHP wrapper fo the scrypt hashing algorithm
Other
209 stars 57 forks source link

Attempting to compile with SSE support on non-supported archetectures #75

Closed PineappleIOnic closed 1 year ago

PineappleIOnic commented 1 year ago

Hey There! 👋 We've recently ran into an issue with php-scrypt where it will attempt to compile using SSE flags on non-SSE environments in cases such as cross-compilation or compiling within docker.

This is due to checking the compilng machine's CPU arch instead of the target machines arch where in the case of compiling on a x86 machine to a arm machine this fails due to arm not having SSE Extensions.

We've been able to get around it by adding our own check for SSE within config.m4 and I am currently drafting a PR now to merge those checks into your codebase.

PineappleIOnic commented 1 year ago

This issue has been resolved with #76