blob: 7460a753aeee38f621aac1246f0d12467d4012b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $NetBSD: Makefile,v 1.26 2022/11/13 18:55:31 fcambus Exp $
DISTNAME= mold-1.6.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=rui314/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/rui314/mold/
COMMENT= High performance drop-in replacement for existing Unix linkers
LICENSE= gnu-agpl-v3
USE_LANGUAGES= c c++20
USE_CMAKE= yes
CMAKE_ARGS+= -DMOLD_USE_SYSTEM_MIMALLOC=ON -DMOLD_USE_SYSTEM_TBB=ON
# Use <stdlib.h> on systems where <alloca.h> doesn't exist
.if !exists(/usr/include/alloca.h)
SUBST_CLASSES+= alloca
SUBST_STAGE.alloca= post-configure
SUBST_FILES.alloca= elf/mold-wrapper.c
SUBST_SED.alloca= -e 's|<alloca.h>|<stdlib.h>|g'
.endif
# This package uses a lot of C++20 features. GCC 10 is the oldest GCC that can
# build it.
GCC_REQD+= 10
# Handle linker flags for dlopen and pthread automatically.
DL_AUTO_VARS= yes
PTHREAD_AUTO_VARS= yes
.include "../../devel/mimalloc/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../parallel/threadingbuildingblocks/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|