pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/hgrep
Module Name: pkgsrc
Committed By: he
Date: Sun Sep 18 13:37:18 UTC 2022
Modified Files:
pkgsrc/textproc/hgrep: Makefile
Log Message:
textproc/hgrep: use mk/atomic64.h.
Also sneak in -latomic via BUILDLINK_TRANSFORM on powerpc platforms,
cannot use LDFLAGS since it's cargo which invokes cc as linker, and
cargo apparently does not respect passed LDFLAGS.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/textproc/hgrep/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/hgrep/Makefile
diff -u pkgsrc/textproc/hgrep/Makefile:1.11 pkgsrc/textproc/hgrep/Makefile:1.12
--- pkgsrc/textproc/hgrep/Makefile:1.11 Fri May 27 18:21:50 2022
+++ pkgsrc/textproc/hgrep/Makefile Sun Sep 18 13:37:18 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/05/27 18:21:50 pin Exp $
+# $NetBSD: Makefile,v 1.12 2022/09/18 13:37:18 he Exp $
DISTNAME= hgrep-0.2.6
CATEGORIES= textproc
@@ -17,9 +17,15 @@ INSTALLATION_DIRS= bin
CARGO_NO_DEFAULT_FEATURES= YES
CARGO_FEATURES+= ripgrep syntect-printer
+.if ${MACHINE_ARCH} == "powerpc"
+# sneak in -latomic in the linker invocation
+BUILDLINK_TRANSFORM+= l:execinfo:execinfo:atomic
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/hgrep \
${DESTDIR}${PREFIX}/bin
+.include "../../mk/atomic64.mk"
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index