commit fa87bfb7b6a1b4c7d726071e180a3bf6462faf20
Author: Jan Palus <[email protected]>
Date:   Mon Jan 24 11:12:14 2022 +0100

    pass c/cxx/ld flags in rust macros; rel 4

 macros.rust         | 6 ++++++
 rpm-pld-macros.spec | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 194e979..f57969d 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -6,7 +6,7 @@ Summary:        PLD Linux RPM macros
 Summary(pl.UTF-8):     Makra RPM dla Linuksa PLD
 Name:          rpm-pld-macros
 Version:       %{rpm_macros_rev}
-Release:       3
+Release:       4
 License:       GPL v2+
 Group:         Development/Building
 Source0:       macros.pld
diff --git a/macros.rust b/macros.rust
index 22ab2c6..1c8a86e 100644
--- a/macros.rust
+++ b/macros.rust
@@ -37,6 +37,9 @@ thumbv7neon-unknown-linux-gnueabihf\\\
 %cargo_build \\\
        CC="%{__cc}" \\\
        CXX="%{__cxx}" \\\
+       CFLAGS="%{rpmcppflags} %{rpmcflags}" \\\
+       CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \\\
+       LDFLAGS="%{rpmldflags}" \\\
        PKG_CONFIG_ALLOW_CROSS=1 \\\
        RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
        %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
@@ -48,6 +51,9 @@ thumbv7neon-unknown-linux-gnueabihf\\\
 %cargo_install \\\
        CC="%{__cc}" \\\
        CXX="%{__cxx}" \\\
+       CFLAGS="%{rpmcppflags} %{rpmcflags}" \\\
+       CXXFLAGS="%{rpmcppflags} %{rpmcxxflags}" \\\
+       LDFLAGS="%{rpmldflags}" \\\
        PKG_CONFIG_ALLOW_CROSS=1 \\\
        RUSTFLAGS="${RUSTFLAGS:-%rpmrustflags}" \\\
        %{?__jobs:CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-%{__jobs}}"} \\\
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/fa87bfb7b6a1b4c7d726071e180a3bf6462faf20

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to