diff options
| -rw-r--r-- | xmake/modules/target/action/install/pkgconfig_importfiles.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/target/action/install/pkgconfig_importfiles.lua b/xmake/modules/target/action/install/pkgconfig_importfiles.lua index aa3d6e632..65da32085 100644 --- a/xmake/modules/target/action/install/pkgconfig_importfiles.lua +++ b/xmake/modules/target/action/install/pkgconfig_importfiles.lua @@ -52,6 +52,7 @@ function main(target, opt) libs = libs .. " -l" .. link end end + libs = libs:trim() -- get cflags local cflags = "" @@ -61,6 +62,7 @@ function main(target, opt) end end cflags = cflags .. " -I${includedir}" + cflags = cflags:trim() -- trace vprint("generating %s ..", pcfile) @@ -79,8 +81,8 @@ function main(target, opt) if version then file:print("Version: %s", version) end - file:print("Libs:%s", libs) - file:print("Cflags:%s", cflags) + file:print("Libs: %s", libs) + file:print("Cflags: %s", cflags) file:close() end end |
