Commit e3dc030
authored
Remove warning by not calling have_library after pkg_config (#193)
pkg_config without the options arguments stores the result in the global
values.
Calling `pkg_config` and `have_library` causes -lffi to appear twice in
the LIBS variable in the resulting Makefile, and causes ld on macOS to
emit a warning:
$ bundle exec rake compile 2>&1 | grep warning:
ld: warning: ignoring duplicate libraries: '-lffi'1 parent 6368ee0 commit e3dc030
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments