-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix FFI on M1 macs #198
Fix FFI on M1 macs #198
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I left a suggestion inline.
if (PHP_OS_FAMILY === "OSX" || | ||
PHP_OS_FAMILY === "Darwin") { | ||
$glib_libname = $path . $glib_libname; | ||
$gobject_libname = $path . $gobject_libname; | ||
$vips_libname = $path . $vips_libname; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably omit this if statement and always prepend the fallback path to the library names.
if (PHP_OS_FAMILY === "OSX" || | |
PHP_OS_FAMILY === "Darwin") { | |
$glib_libname = $path . $glib_libname; | |
$gobject_libname = $path . $gobject_libname; | |
$vips_libname = $path . $vips_libname; | |
} | |
# Ensure the fallback path is prepended to the lib names, if any | |
$glib_libname = $path . $glib_libname; | |
$gobject_libname = $path . $gobject_libname; | |
$vips_libname = $path . $vips_libname; |
I've made #206 which I think fixes this issue. |
Thank you for making this PR, @iruoy. I'm sorry I was so slow getting to it, I was trapped in a terrible work crunch. I hope my PR resolves this. |
I actually didn't mean to close this. I was just cleaning out some repositories on my github. It looks like it caught your eye though. Thanks for making the improved PR, I will try it out this weekend or next week |
Fixes #178
I don't know why, but absolute paths are needed here. Atleast on M1.