File tree 8 files changed +8
-8
lines changed
interdependent-c-libraries
8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#![ crate_type = "dylib" ]
12
12
13
- #[ link( name = "cfoo" ) ]
13
+ #[ link( name = "cfoo" , kind = "static" ) ]
14
14
extern {
15
15
fn foo ( ) ;
16
16
}
Original file line number Diff line number Diff line change 10
10
11
11
#![ crate_type = "rlib" ]
12
12
13
- #[ link( name = "cfoo" ) ]
13
+ #[ link( name = "cfoo" , kind = "static" ) ]
14
14
extern {
15
15
fn foo ( ) ;
16
16
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ extern crate testcrate;
12
12
13
13
extern "C" fn bar < T > ( ts : testcrate:: TestStruct < T > ) -> T { ts. y }
14
14
15
- #[ link( name = "test" ) ]
15
+ #[ link( name = "test" , kind = "static" ) ]
16
16
extern {
17
17
fn call ( c : extern "C" fn ( testcrate:: TestStruct < i32 > ) -> i32 ) -> i32 ;
18
18
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub struct TestStruct<T> {
18
18
19
19
pub extern "C" fn foo < T > ( ts : TestStruct < T > ) -> T { ts. y }
20
20
21
- #[ link( name = "test" ) ]
21
+ #[ link( name = "test" , kind = "static" ) ]
22
22
extern {
23
23
pub fn call ( c : extern "C" fn ( TestStruct < i32 > ) -> i32 ) -> i32 ;
24
24
}
Original file line number Diff line number Diff line change 12
12
13
13
extern crate foo;
14
14
15
- #[ link( name = "bar" ) ]
15
+ #[ link( name = "bar" , kind = "static" ) ]
16
16
extern {
17
17
fn bar ( ) ;
18
18
}
Original file line number Diff line number Diff line change 10
10
11
11
#![ crate_type = "rlib" ]
12
12
13
- #[ link( name = "foo" ) ]
13
+ #[ link( name = "foo" , kind = "static" ) ]
14
14
extern {
15
15
fn foo ( ) ;
16
16
}
Original file line number Diff line number Diff line change 12
12
13
13
extern crate libc;
14
14
15
- #[ link( name = "test" ) ]
15
+ #[ link( name = "test" , kind = "static" ) ]
16
16
extern {
17
17
fn slice_len ( s : & [ u8 ] ) -> libc:: size_t ;
18
18
fn slice_elem ( s : & [ u8 ] , idx : libc:: size_t ) -> u8 ;
Original file line number Diff line number Diff line change 12
12
13
13
extern crate libc;
14
14
15
- #[ link( name="foo" ) ]
15
+ #[ link( name="foo" , kind = "static" ) ]
16
16
extern {
17
17
fn should_return_one ( ) -> libc:: c_int ;
18
18
}
You can’t perform that action at this time.
0 commit comments