#Linking against a dynamic library that has a lib<name>.so named differently from the package name

1 messages · Page 1 of 1 (latest)

midnight escarp
#

I have a failing zig build where I want to use system integration for oniguruma runtime dependency on fedora linux as it provides the shared library as libonig.so.5

error: error: unable to find dynamic system library 'oniguruma' using strategy 'mode_first'. searched paths:
  /usr/lib/x86_64-linux-gnu/liboniguruma.soam_han
  /usr/local/lib64/liboniguruma.soast nativam_han
  /usr/local/lib/liboniguruma.soFast native
  /usr/lib/x86_64-linux-gnu/liboniguruma.somat__a
  /lib64/liboniguruma.soeaseFast native(.{ .addr_
  /lib/liboniguruma.soGL.addUnderlinene(.{ .addr_
  /usr/lib64/liboniguruma.souildCellste(.zlib,u32
  /usr/lib/liboniguruma.soenderGlyphrAddress
  /lib/x86_64-linux-gnu/liboniguruma.so1141nati
  /usr/lib/x86_64-linux-gnu/liboniguruma.a
  /usr/local/lib64/liboniguruma.allbacknon_4188
  /usr/local/lib/liboniguruma.aExit
  /usr/lib/x86_64-linux-gnu/liboniguruma.a
  /lib64/liboniguruma.afDebugInfofig__anon_4188
  /lib/liboniguruma.afDebugInfoFast native
  /usr/lib64/liboniguruma.atAddress__anon_6660
  /usr/lib/liboniguruma.aonsis
  /lib/x86_64-linux-gnu/liboniguruma.able
      └─ compress.flate.bit_reader.BitReader(u32,

https://fedora.pkgs.org/41/fedora-x86_64/oniguruma-6.9.9-4.fc41.x86_64.rpm.html
Where can I override the search name for a specific lib or get this updated?

patent shale