From b5170b913ef6197b66ffaac4cca0644884c587d4 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Sun, 9 Jul 2023 11:33:45 +0800 Subject: [PATCH] pdfhummus: add syslinks (#2294) --- packages/p/pdfhummus/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/p/pdfhummus/xmake.lua b/packages/p/pdfhummus/xmake.lua index 5007aa5a0b6..eea6f40d4f6 100644 --- a/packages/p/pdfhummus/xmake.lua +++ b/packages/p/pdfhummus/xmake.lua @@ -17,6 +17,10 @@ package("pdfhummus") add_configs("libjpeg", {description = "Support DCT encoding", default = false, type = "boolean"}) add_configs("libpng", {description = "Support png image", default = false, type = "boolean"}) + if is_plat("linux") then + add_syslinks("m", "stdc++") + end + on_load(function (package) for _, dep in ipairs({"libtiff", "libpng", "libjpeg"}) do if package:config(dep) then