-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[libffi] Use upstream's build system #33203
Conversation
Can you please resolve the conflicts against master? |
Just the usual merge-unfriendly vcpkg versions stuff. Done. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This change seems to break Python3 on x64-linux. It installs libffi in |
What linux distro is that? the one vcpkg uses installs into /lib/ |
As mentioned in #33426, this is with |
Try passing |
diff --git a/ports/libffi/portfile.cmake b/ports/libffi/portfile.cmake
index eaef8c8..40d936b 100644
--- a/ports/libffi/portfile.cmake
+++ b/ports/libffi/portfile.cmake
@@ -48,6 +48,7 @@ vcpkg_configure_make(
OPTIONS
--enable-portable-binary
--disable-docs
+ --disable-multi-os-directory
${options}
) With that patch, it installs and works correctly. Shall I make a PR for this? (as in, is that an acceptable solution, or does it need more love somewhere) |
For me it looks like the correct solution so why not? |
It looks like this broke the builds on x86-linux, at least when building on a x64 linux system. It compiles just fine, however it is failing to add x86/ffi.lo to the target objects so that file is not compiled and linked into the final .a file, which then leads to ffi_call and other important functions to be missing. I've tried to hack around a little to specify the target passed to configure manually, but that didn't help either. I'm out of ideas now on how to convince it to properly build it. It looks like |
Please open a proper issue. The templates should remind you of neccessary information (platform, logs, etc). |
Uses the official build system.
Uses the official binary names for Windows. (One patch less for llvm.)
Reimplements exported CMake config with
find_...
commands, and moves it to the unofficial namespace. (Migration path included.)Adds libffi dependency to gobject-introspection manifest.