diff options
| author | ruki <[email protected]> | 2023-11-21 23:31:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-21 23:31:07 +0800 |
| commit | 5f9f4298aa66c0c64e6e8d48a191ef01bf746e74 (patch) | |
| tree | 3c78a65911a14aa6ea965d2c0557fecf42f01aa2 | |
| parent | f9065b4b16508676d4a66c687beba4a1a9d3196f (diff) | |
add defines to pc #4405
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index f92286e3e..bb8b34137 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -80,6 +80,9 @@ function _patch_pkgconfig(package) end end cflags = cflags .. " -I${includedir}" + for _, define in ipairs(fetchinfo.defines) do + cflags = cflags .. " -D" .. define + end -- patch a *.pc file local file = io.open(pcfile, 'w') |
