]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
unconditionally set PKG_CONFIG_ALLOW_CROSS in cargo macros
authorJan Palus <atler@pld-linux.org>
Mon, 10 Jan 2022 19:27:57 +0000 (20:27 +0100)
committerJan Palus <atler@pld-linux.org>
Mon, 10 Jan 2022 19:27:57 +0000 (20:27 +0100)
macros.rust

index c0d849e707fd18205fd7a81468497d42b681f565..e439f12c13a1f59834161094ec3c27531e7942e2 100644 (file)
@@ -32,9 +32,7 @@ armv7-unknown-linux-gnueabihf\\\
 %__cargo       /usr/bin/cargo
 %__cargo_common_opts   -v --offline
 %cargo_build \\\
-%ifarch x32 \
        PKG_CONFIG_ALLOW_CROSS=1 \\\
-%endif \
        RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
        %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
        %{__cargo} %{__cargo_common_opts} build %{!?debug:--release} \\\
@@ -43,9 +41,7 @@ armv7-unknown-linux-gnueabihf\\\
 %{nil}
 
 %cargo_install \\\
-%ifarch x32 \
        PKG_CONFIG_ALLOW_CROSS=1 \\\
-%endif \
        RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
        %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
        %{__cargo} %{__cargo_common_opts} install \\\
This page took 0.309212 seconds and 4 git commands to generate.