diff --git a/cli/main.c b/cli/main.c index d3a253d..6802c28 100644 --- a/cli/main.c +++ b/cli/main.c @@ -557,12 +557,11 @@ apply_cflags(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int m return false; pkgconf_fragment_filter(client, &filtered_list, &unfiltered_list, filter_cflags, NULL); + maybe_add_module_definitions(client, world, &filtered_list); if (filtered_list.head == NULL) goto out; - maybe_add_module_definitions(client, world, &filtered_list); - render_buf = pkgconf_fragment_render(&filtered_list, true, want_render_ops); printf("%s", render_buf); free(render_buf);