diff options
author | Daniel Bermond | 2022-05-09 19:50:57 -0300 |
---|---|---|
committer | Daniel Bermond | 2022-05-09 19:50:57 -0300 |
commit | 72ba1e5d92c372cb2323bab89ebbaed268487850 (patch) | |
tree | 9c93c01a6a463eb71a58dec8918934b43e0eeb85 | |
parent | 36fc2e44063d5e8dd49d8722a9ac0e3f77dd6d72 (diff) | |
download | aur-72ba1e5d92c372cb2323bab89ebbaed268487850.tar.gz |
Fix build with lto
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = cargo-c-git pkgdesc = A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries (git version) - pkgver = 0.6.2.r0.g59ee00a + pkgver = 0.9.9.r0.g3273eff pkgrel = 1 url = https://github.com/lu-zero/cargo-c/ arch = x86_64 @@ -16,4 +16,3 @@ pkgbase = cargo-c-git sha256sums = SKIP pkgname = cargo-c-git - @@ -1,7 +1,7 @@ # Maintainer: Daniel Bermond <dbermond@archlinux.org> pkgname=cargo-c-git -pkgver=0.6.2.r0.g59ee00a +pkgver=0.9.9.r0.g3273eff pkgrel=1 pkgdesc='A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries (git version)' arch=('x86_64') @@ -23,6 +23,7 @@ pkgver() { } build() { + export CFLAGS+=' -ffat-lto-objects' cargo build --release --frozen --manifest-path='cargo-c/Cargo.toml' } @@ -31,6 +32,6 @@ check() { } package() { - install -D -m755 cargo-c/target/release/cargo-c{build,install} -t "${pkgdir}/usr/bin" + cargo install --frozen --offline --no-track --path cargo-c --root "${pkgdir}/usr" install -D -m644 cargo-c/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |