Skip to content

Commit

Permalink
Link ruby.pc to pkg-config data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 18, 2024
1 parent 87c4c6c commit 120c291
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tool/rbinstall.rb
Expand Up @@ -448,6 +448,11 @@ def (bins = []).add(name)
if pc and File.file?(pc) and File.size?(pc)
prepare "pkgconfig data", pkgconfigdir = File.join(libdir, "pkgconfig")
install pc, pkgconfigdir, :mode => $data_mode
if (pkgconfig_base = CONFIG["libdir", true]) != libdir
prepare "pkgconfig data link", File.join(pkgconfig_base, "pkgconfig")
ln_sf(File.join("..", Path.relative(pkgconfigdir, pkgconfig_base), pc),
File.join(pkgconfig_base, "pkgconfig", pc))
end
end
end

Expand Down

0 comments on commit 120c291

Please sign in to comment.