Skip to content

Commit bcfcee5

Browse files
Include link options in .pc generation
1 parent 173ed41 commit bcfcee5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libmongoc/src/libmongoc.pc.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ Libs: -L${libdir} -l$<TARGET_PROPERTY:OUTPUT_NAME> ~@space@~
2727
%define libs_prop $<TARGET_PROPERTY:pc_LIBS>
2828
#~ Remove duplicate items, which will usually be redundant link paths:
2929
%define libs $<REMOVE_DUPLICATES:libs_prop>
30-
$<JOIN:libs,@space@>
30+
$<JOIN:libs,@space@>~
31+
32+
#~ Add link options. Don't remove duplicates, because they may be important
33+
%define link_opts $<TARGET_PROPERTY:INTERFACE_LINK_OPTIONS>
34+
$<$<<not-empty:link_opts>>:@space@$<JOIN:link_opts,@space@>>
3135

3236
~@newline@~
3337

0 commit comments

Comments
 (0)