File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1313 ],
1414 "include_dirs" : [
1515 "<!@(node -p \" require('node-addon-api').include\" )" ,
16- "<!@(pkg-config --cflags-only-I libvirt | sed 's/-I//g')" ,
16+ "<!@(pkg-config --cflags-only-I libvirt 2>/dev/null || echo '-I/usr/include/libvirt -I/usr/local/include/libvirt' | sed 's/-I//g')" ,
1717 "."
1818 ],
1919 "dependencies" : [
20- "<!(node -p \" require('node-addon-api').gyp\" )" ],
20+ "<!(node -p \" require('node-addon-api').gyp\" )"
21+ ],
2122 "cflags!" : [ "-fno-exceptions" ],
2223 "cflags_cc!" : [ "-fno-exceptions" ],
2324 "xcode_settings" : {
3839 }],
3940 ["OS!=\" mac\" " , {
4041 "libraries" : [
41- "<!@(pkg-config --libs libvirt)"
42+ "<!@(pkg-config --libs libvirt 2>/dev/null || echo '-L/usr/lib -L/usr/local/lib -lvirt')"
43+ ],
44+ "include_dirs" : [
45+ "/usr/include/libvirt" ,
46+ "/usr/local/include/libvirt"
4247 ]
4348 }]
4449 ]
You can’t perform that action at this time.
0 commit comments