pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/macchina macchina: fix build on aarch64
details: https://anonhg.NetBSD.org/pkgsrc/rev/2ee33fffe738
branches: trunk
changeset: 454765:2ee33fffe738
user: tnn <tnn%pkgsrc.org@localhost>
date: Fri Jun 18 10:44:29 2021 +0000
description:
macchina: fix build on aarch64
The rust toolchain emits unusable R_AARCH64_ADR_PREL_PG_HI21 relocations
with rust's default -pie setting, so BUILDLINK_TRANSFORM it to -fPIC.
diffstat:
sysutils/macchina/Makefile | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 7cd9f65437a0 -r 2ee33fffe738 sysutils/macchina/Makefile
--- a/sysutils/macchina/Makefile Fri Jun 18 10:07:01 2021 +0000
+++ b/sysutils/macchina/Makefile Fri Jun 18 10:44:29 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2021/06/08 10:21:55 pin Exp $
+# $NetBSD: Makefile,v 1.26 2021/06/18 10:44:29 tnn Exp $
DISTNAME= macchina-0.9.2
CATEGORIES= sysutils
@@ -23,6 +23,8 @@
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libXau}/lib
MAKE_ENV+= RUSTFLAGS=${RUSTFLAGS:Q}
+BUILDLINK_TRANSFORM+= opt:-pie:-fPIC
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/macchina ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/macchina.toml ${DESTDIR}${PREFIX}/share/examples/macchina
Home |
Main Index |
Thread Index |
Old Index