pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/mold devel/mold: import mold-0.9.3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/096ede8fc4d9
branches:  trunk
changeset: 456462:096ede8fc4d9
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Thu Jul 29 21:17:17 2021 +0000

description:
devel/mold: import mold-0.9.3.

mold is a new linker that is optimized for modern multi-core machines.

mold is command-line compatible with the other major linkers, GNU ld, GNU gold
and LLVM lld, yet it is several times faster than them. Its goal is to increase
programmer productivity by speeding up program build time, especially for rapid
edit-build-test-debug cycles.

diffstat:

 devel/mold/DESCR                  |   6 +++++
 devel/mold/Makefile               |  26 +++++++++++++++++++++++
 devel/mold/PLIST                  |   4 +++
 devel/mold/distinfo               |   7 ++++++
 devel/mold/patches/patch-Makefile |  44 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 87 insertions(+), 0 deletions(-)

diffs (107 lines):

diff -r beadc8d93ae4 -r 096ede8fc4d9 devel/mold/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mold/DESCR  Thu Jul 29 21:17:17 2021 +0000
@@ -0,0 +1,6 @@
+mold is a new linker that is optimized for modern multi-core machines.
+
+mold is command-line compatible with the other major linkers, GNU ld, GNU gold
+and LLVM lld, yet it is several times faster than them. Its goal is to increase
+programmer productivity by speeding up program build time, especially for rapid
+edit-build-test-debug cycles.
diff -r beadc8d93ae4 -r 096ede8fc4d9 devel/mold/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mold/Makefile       Thu Jul 29 21:17:17 2021 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2021/07/29 21:17:17 fcambus Exp $
+
+DISTNAME=      mold-0.9.3
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=rui314/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    fcambus%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/rui314/mold/
+COMMENT=       High performance drop-in replacement for existing Unix linkers
+LICENSE=       gnu-agpl-v3
+
+ONLY_FOR_PLATFORM=     Linux-*-x86_64
+
+USE_TOOLS+=    gmake
+USE_LANGUAGES= c c++
+
+MAKE_FLAGS+=   MAN_DIR="${PREFIX}/${PKGMANDIR}"
+MAKE_FLAGS+=   SYSTEM_MIMALLOC=1 SYSTEM_TBB=1
+
+.include "../../devel/mimalloc/buildlink3.mk"
+.include "../../devel/xxhash/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../parallel/threadingbuildingblocks/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r beadc8d93ae4 -r 096ede8fc4d9 devel/mold/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mold/PLIST  Thu Jul 29 21:17:17 2021 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2021/07/29 21:17:17 fcambus Exp $
+bin/mold
+lib/mold/mold-wrapper.so
+man/man1/mold.1
diff -r beadc8d93ae4 -r 096ede8fc4d9 devel/mold/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mold/distinfo       Thu Jul 29 21:17:17 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/07/29 21:17:17 fcambus Exp $
+
+SHA1 (mold-0.9.3.tar.gz) = 1de86f59f5944394ecd1fdbd9f649273d6154f49
+RMD160 (mold-0.9.3.tar.gz) = ca0b058e579db04040f51d1ad669d2911d64b5e1
+SHA512 (mold-0.9.3.tar.gz) = 5b4850a00a5b2cb63c1aff13ef8d2cfdd79088187e1d82c6c0abad81d0c81866253533c67164db03a5d663fc48f5246f930a286ed6ca5b47ef658587be930fd0
+Size (mold-0.9.3.tar.gz) = 3374270 bytes
+SHA1 (patch-Makefile) = c1d3e55b6413df800cf92301d6e9726ff7e81569
diff -r beadc8d93ae4 -r 096ede8fc4d9 devel/mold/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mold/patches/patch-Makefile Thu Jul 29 21:17:17 2021 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-Makefile,v 1.1 2021/07/29 21:17:17 fcambus Exp $
+
+- Do not hardcode CC and CXX.
+- Remove hardcoded debug flag.
+- Remove hardcoded optimizations.
+- Do not gzip manual pages.
+- Fix manual page installation path.
+
+--- Makefile.orig      2021-07-29 09:10:45.841721744 +0000
++++ Makefile
+@@ -1,9 +1,9 @@
+-CC = clang
+-CXX = clang++
++CC ?= clang
++CXX ?= clang++
+ 
+ GIT_HASH ?= $(shell [ -d .git ] && git rev-parse HEAD)
+ 
+-CPPFLAGS = -g -Imimalloc/include -pthread -std=c++20 \
++CPPFLAGS = -Imimalloc/include -pthread -std=c++20 \
+            -DMOLD_VERSION=\"0.9.3\" \
+            -DGIT_HASH=\"$(GIT_HASH)\" \
+          $(EXTRA_CPPFLAGS)
+@@ -25,7 +25,6 @@ TSAN ?= 0
+ ifeq ($(DEBUG), 1)
+   CPPFLAGS += -O0
+ else
+-  CPPFLAGS += -O2
+ endif
+ 
+ ifeq ($(LTO), 1)
+@@ -95,10 +95,8 @@ install: all
+       install -m 644 mold-wrapper.so $(DESTDIR)$(PREFIX)/lib/mold
+       strip $(DESTDIR)$(PREFIX)/lib/mold/mold-wrapper.so
+ 
+-      install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1
+-      install -m 644 docs/mold.1 $(DESTDIR)$(PREFIX)/share/man/man1
+-      rm -f $(DESTDIR)$(PREFIX)/share/man/man1/mold.1.gz
+-      gzip -9 $(DESTDIR)$(PREFIX)/share/man/man1/mold.1
++      install -m 755 -d $(DESTDIR)$(MAN_DIR)/man1
++      install -m 644 docs/mold.1 $(DESTDIR)$(MAN_DIR)/man1
+ 
+ uninstall:
+       rm -f $(DESTDIR)$(PREFIX)/bin/mold



Home | Main Index | Thread Index | Old Index