pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/macchina



Module Name:    pkgsrc
Committed By:   tnn
Date:           Fri Jun 18 10:44:29 UTC 2021

Modified Files:
        pkgsrc/sysutils/macchina: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/sysutils/macchina/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/macchina/Makefile
diff -u pkgsrc/sysutils/macchina/Makefile:1.25 pkgsrc/sysutils/macchina/Makefile:1.26
--- pkgsrc/sysutils/macchina/Makefile:1.25      Tue Jun  8 10:21:55 2021
+++ pkgsrc/sysutils/macchina/Makefile   Fri Jun 18 10:44:29 2021
@@ -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
 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