Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2021 20:44:25 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 52549f096d76 - 2021Q3 - net-im/fractal: respect RUSTFLAGS
Message-ID:  <202108162044.17GKiPaR009593@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2021Q3 has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=52549f096d76c3539c5644afc7ea01ce5b50e3d3

commit 52549f096d76c3539c5644afc7ea01ce5b50e3d3
Author:     Evgeniy Khramtsov <evgeniy@khramtsov.org>
AuthorDate: 2021-08-04 12:43:13 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-08-16 20:44:17 +0000

    net-im/fractal: respect RUSTFLAGS
    
    Set RUSTFLAGS like Mk/Uses/cargo.mk does to respect CC and LDFLAGS.
    
    PR:             257621
    Approved by:    Greg V <greg@unrelenting.technology> (maintainer)
    
    (cherry picked from commit e6d430445e5a7180f1b45e61eb7793c8c43f3aa0)
---
 net-im/fractal/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-im/fractal/Makefile b/net-im/fractal/Makefile
index 4dd946805ef2..d974a6f0d704 100644
--- a/net-im/fractal/Makefile
+++ b/net-im/fractal/Makefile
@@ -31,7 +31,8 @@ INSTALLS_ICONS=		yes
 # for the gettext-sys crate
 MAKE_ENV+=	GETTEXT_BIN_DIR=${LOCALBASE}/bin \
 		GETTEXT_LIB_DIR=${LOCALBASE}/lib \
-		GETTEXT_INCLUDE_DIR=${LOCALBASE}/include
+		GETTEXT_INCLUDE_DIR=${LOCALBASE}/include \
+		RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
 
 post-patch:
 # Disable vendor checksums



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108162044.17GKiPaR009593>