File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ edition = "2018"
13
13
[workspace ]
14
14
members = [" keyutils-raw" ]
15
15
16
+ [features ]
17
+ static = [" keyutils-raw/static" ]
18
+
16
19
[dev-dependencies ]
17
20
lazy_static = " 1"
18
21
regex = " 1"
Original file line number Diff line number Diff line change @@ -10,5 +10,8 @@ keywords = ["keyutils"]
10
10
links = " keyutils"
11
11
edition = " 2018"
12
12
13
+ [features ]
14
+ static = []
15
+
13
16
[dependencies ]
14
17
libc = " 0.2"
Original file line number Diff line number Diff line change 25
25
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
27
27
fn main ( ) {
28
- println ! ( "cargo:rustc-link-lib=keyutils" ) ;
28
+ if cfg ! ( feature = "static" ) {
29
+ println ! ( "cargo:rustc-link-lib=static=keyutils" ) ;
30
+ } else {
31
+ println ! ( "cargo:rustc-link-lib=keyutils" ) ;
32
+ }
29
33
}
You can’t perform that action at this time.
0 commit comments