Skip to content

Commit

Permalink
Merge pull request #367 from mvz/improve-gobject-library-loading
Browse files Browse the repository at this point in the history
Load gobject-2.0 library in a way that does not require dev package
  • Loading branch information
mvz authored Jan 18, 2025
2 parents 6295af2 + 6e55bcc commit cc1dc30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ffi-gobject_introspection/gobject_type_init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.type_init
# Module for attaching g_type_init from the gobject library.
module Lib
extend FFI::Library
ffi_lib "gobject-2.0"
ffi_lib "gobject-2.0.so.0"
attach_function :g_type_init, [], :void
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gir_ffi-base/gobject/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Lib
extend FFI::Library
extend FFI::BitMasks

ffi_lib "gobject-2.0"
ffi_lib "gobject-2.0.so.0"

attach_function :g_type_from_name, [:string], :size_t
attach_function :g_type_fundamental, [:size_t], :size_t
Expand Down

0 comments on commit cc1dc30

Please sign in to comment.