From 120c291fafd438e2bc58f098023c669dadc64b08 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 18 Feb 2024 15:08:27 +0900 Subject: [PATCH] Link ruby.pc to pkg-config data directory --- tool/rbinstall.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 80041156be..16d264adf7 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -448,6 +448,11 @@ install?(:local, :arch, :data) do 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