Skip to content
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

Add --with-ffi-compat build option #57

Merged
merged 3 commits into from
Oct 1, 2023
Merged

Add --with-ffi-compat build option #57

merged 3 commits into from
Oct 1, 2023

Conversation

kleisauke
Copy link
Member

After this, the "-static" variant distributes libvips as a single shared library.

To ensure compatibility with the FFI-bindings, a new variant ("-static-ffi") is introduced, which continues to compile GLib as a shared library.


Manually-tested with sharp using this changeset:
lovell/sharp@gauge...kleisauke:win32-single-shared

After this, the "-static" variant distributes libvips as a single
shared library.

To ensure compatibility with the FFI-bindings, a new variant
("-static-ffi") is introduced, which continues to compile GLib as a
shared library.
i686 symbols are prefixed with an underscore.
```
metadata.obj : error LNK2001: unresolved external symbol __imp__g_atomic_int_inc [C:\Users\kleisauke\sharp\build\sharp-win32-ia32.vcxproj]
metadata.obj : error LNK2001: unresolved external symbol __imp__g_atomic_int_dec_and_test [C:\Users\kleisauke\sharp\build\sharp-win32-ia32.vcxproj]
C:\Users\kleisauke\sharp\build\Release\sharp-win32-ia32.node : fatal error LNK1120: 2 unresolved externals [C:\Users\kleisauke\sharp\build\sharp-win32-ia32.vcxproj]
````
@kleisauke kleisauke merged commit b7ea185 into master Oct 1, 2023
@kleisauke kleisauke deleted the single-shared branch October 1, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants