You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GLib uses this linker flag by default, so it might make sense to also link libvips with this flag. The above NetVips issue had no issues running this on macOS, so I'm not sure if this flag is needed there as well (Homebrew also seems to avoid any -Bsymbolic* linker flags, probably due to missing support for this in Xcode(?)).
changed the title [-]Linux: experiment with linking libvips with -Bsymbolic-functions[/-][+]Linux: experiment linking libvips with -Bsymbolic-functions[/+]on Sep 4, 2020
Ah, you're right, this linker flag only applies to ELF binaries and not to Mach-O, for example. I got confused since HarfBuzz seems to configure successfully with -Bsymbolic-functions on macOS, see:
C++ compiler for the host machine: clang++ (clang 11.0.3 "Apple clang version 11.0.3 (clang-1103.0.32.62)")
C++ linker for the host machine: clang++ ld64 556.6
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports link arguments -Bsymbolic-functions: YES
Activity
[-]Linux: experiment with linking libvips with -Bsymbolic-functions[/-][+]Linux: experiment linking libvips with -Bsymbolic-functions[/+]lovell commentedon Sep 4, 2020
Nice idea, happy for a PR if you're able. This is an ELF-only feature so should be ignored by linkers for e.g. macOS targets.
[-]Linux: experiment linking libvips with -Bsymbolic-functions[/-][+]Linux: link libvips with -Bsymbolic-functions[/+]kleisauke commentedon Sep 5, 2020
Great, I'll prepare a PR.
Ah, you're right, this linker flag only applies to ELF binaries and not to Mach-O, for example. I got confused since HarfBuzz seems to configure successfully with
-Bsymbolic-functionson macOS, see:Link libvips with -Bsymbolic-functions on Linux
lovell commentedon Sep 8, 2020
(Re-opening auto-closed issue until we publish a new release.)
mceachen commentedon Sep 16, 2020
At @lovell's suggestion, I've just opened electron/electron#25495 (which may help other native modules).
Please tell me if I should edit the issue in any way to clarify or fix and mistakes.