This commit is contained in:
Chris West (Faux) 2017-07-13 13:40:51 +01:00
parent aa46a936f2
commit 0126dd5220
6 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
[package]
name = "apt-native"
name = "apt-pkg-native"
version = "0.1.0"
authors = ["Chris West (Faux) <git@goeswhere.com>"]

View File

View File

@ -1,11 +1,11 @@
CXXFLAGS=-Wall -Wextra -g
all: libapt-c.a
all: libapt-pkg-c.a
lib.o: lib.cpp lib.h
libapt-c.a: lib.o
libapt-pkg-c.a: lib.o
ar rcs $@ $<
clean:
$(RM) libapt-c.a lib.o
$(RM) libapt-pkg-c.a lib.o

View File

@ -1,3 +1,3 @@
fn main() {
println!("cargo:rustc-link-search=apt-c")
println!("cargo:rustc-link-search=apt-pkg-c")
}

View File

@ -9,7 +9,7 @@ use libc::c_char;
pub type PCache = *mut c_void;
pub type PPkgIterator = *mut c_void;
#[link(name = "apt-c")]
#[link(name = "apt-pkg-c")]
#[link(name = "apt-pkg")]
#[link(name = "stdc++")]
extern {