pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/hgrep textproc/hgrep: use mk/atomic64.h.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bc5f0f5406fd
branches:  trunk
changeset: 385520:bc5f0f5406fd
user:      he <he%pkgsrc.org@localhost>
date:      Sun Sep 18 13:37:18 2022 +0000

description:
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.

diffstat:

 textproc/hgrep/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r dbb1f9e83832 -r bc5f0f5406fd textproc/hgrep/Makefile
--- a/textproc/hgrep/Makefile   Sun Sep 18 13:34:27 2022 +0000
+++ b/textproc/hgrep/Makefile   Sun Sep 18 13:37:18 2022 +0000
@@ -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 @@
 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