fixed linker

This commit is contained in:
Colin Sherratt
2014-01-28 02:15:09 -05:00
parent e69cdb62b0
commit 9a00a8bd72
2 changed files with 5 additions and 3 deletions

View File

@ -15,4 +15,4 @@ libovr-rs-44316370-0.1.so: libovr_wrapper.a lib.rs
rustc lib.rs -L .
test: test.rs libovr-rs-44316370-0.1.so
rustc test.rs -L . --link-args="-lovr -ludev -lstdc++ -lc -lX11 -lm -lpthread -lXinerama"
rustc test.rs -L .

6
lib.rs
View File

@ -11,9 +11,11 @@ use cgmath::quaternion::Quat;
use cgmath::vector::Vec3;
use cgmath::matrix::Mat4;
#[cfg(target_os = "linux")]
#[link(name="udev")]
#[link(name="stdc++")]
#[link(name="Xinerama")]
#[link(name="ovr_wrapper")]
extern {}
#[link(name="ovr")]
extern {}