diff options
| author | ruki <[email protected]> | 2024-03-01 08:58:28 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-01 08:58:28 +0800 |
| commit | ae8a257bc0506e3397963bf077deab42f8ea7a4b (patch) | |
| tree | e54e706c27ed2e0e40a44ce4d7117f5830f2a9e3 | |
| parent | 9b8384ff002380fce4ba8ca4cd3f6e0e354fb9dc (diff) | |
| parent | 4fcd63bf9dc9650ce96f720f1ffc85c2a8a3ab93 (diff) | |
Merge pull request #4784 from SuperSodaSea/fix/pkgconfig
Remove extra spaces from generated pkgconfig file
| -rw-r--r-- | xmake/modules/target/action/install/pkgconfig_importfiles.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/target/action/install/pkgconfig_importfiles.lua b/xmake/modules/target/action/install/pkgconfig_importfiles.lua index 979feaee2..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) |
