diff options
| -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') |
