From adb3e60d00790f13cfc65546d246633c40cd689b Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 29 Jul 2021 22:43:27 +0800 Subject: [PATCH] improve glib --- packages/g/glib/xmake.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/g/glib/xmake.lua b/packages/g/glib/xmake.lua index ea54f0553..913cb40b7 100644 --- a/packages/g/glib/xmake.lua +++ b/packages/g/glib/xmake.lua @@ -24,6 +24,14 @@ package("glib") add_syslinks("pthread", "dl") end + if on_fetch then + on_fetch("macosx", "linux", function (package, opt) + if opt.system and package.find_package then + return package:find_package("pkgconfig::glib-2.0") + end + end) + end + on_install("macosx", "linux", function (package) local configs = {"-Dbsymbolic_functions=false", "-Ddtrace=false",