Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove the BROKEN - Import the fix from upstream - Add ASAN option - Add LIB_DEPENDS on zstd Differential Revision: <https://reviews.freebsd.org/D43718>
- Loading branch information
Showing
2 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,50 @@ | ||
PORTNAME= mold | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 1.2.1 | ||
PORTREVISION= 6 | ||
DISTVERSIONPREFIX= v | ||
DISTVERSION= 2.4.0 | ||
CATEGORIES= devel | ||
|
||
# See https://github.com/rui314/mold/pull/1187 | ||
PATCHFILES= 8c99dd0f2c165e36efd4fad762158ec13004b86a.patch:-p1 | ||
PATCH_SITES= https://github.com/rui314/mold/commit/ | ||
|
||
MAINTAINER= ashish@FreeBSD.org | ||
COMMENT= Modern Linker | ||
WWW= https://github.com/rui314/mold | ||
|
||
LICENSE= AGPLv3 | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
# see https://github.com/rui314/mold/issues/456 | ||
BROKEN= broken with FreeBSD strip | ||
NOT_FOR_ARCHS= armhf armv7 i386 | ||
|
||
LIB_DEPENDS= libtbb.so:devel/onetbb \ | ||
libmimalloc.so:devel/mimalloc | ||
LIB_DEPENDS= libmimalloc.so:devel/mimalloc \ | ||
libtbb.so:devel/onetbb \ | ||
libzstd.so:archivers/zstd | ||
|
||
USES= gmake ssl | ||
MAKE_ENV+= SYSTEM_TBB=1 | ||
MAKE_ENV+= SYSTEM_MIMALLOC=1 | ||
MAKE_ENV+= STRIP_CMD=${STRIP_CMD} | ||
CXXFLAGS+= -I${LOCALBASE}/include | ||
LDFLAGS+= -L${LOCALBASE}/lib | ||
MAKE_FLAGS+= "CXXFLAGS=${CXXFLAGS}" | ||
MAKE_FLAGS+= "LDFLAGS=${LDFLAGS}" | ||
USES= cmake ssl localbase:ldflags | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= rui314 | ||
|
||
CMAKE_ON= MOLD_USE_MIMALLOC \ | ||
MOLD_USE_SYSTEM_MIMALLOC \ | ||
MOLD_USE_SYSTEM_TBB | ||
|
||
CMAKE_OFF= MOLD_USE_MOLD \ | ||
MOLD_USE_TSAN \ | ||
MOLD_MOSTLY_STATIC \ | ||
BUILD_TESTING \ | ||
MOLD_LTO | ||
|
||
OPTIONS_DEFINE= ASAN | ||
|
||
ASAN_DESC= Enable Address Sanitizer | ||
ASAN_CMAKE_BOOL=MOLD_USE_ASAN | ||
|
||
PLIST_FILES= bin/ld.mold \ | ||
bin/ld64.mold \ | ||
bin/mold \ | ||
lib/mold/mold-wrapper.so \ | ||
libexec/mold/ld \ | ||
share/man/man1/ld.mold.1.gz \ | ||
share/man/man1/mold.1.gz | ||
|
||
post-patch: | ||
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ | ||
${WRKSRC}/Makefile | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
TIMESTAMP = 1651457801 | ||
SHA256 (rui314-mold-v1.2.1_GH0.tar.gz) = 41868663ff18afee3fa35e5e3fdf3d9575eb2e4ff49967b8f42f479c61c1ec34 | ||
SIZE (rui314-mold-v1.2.1_GH0.tar.gz) = 4669615 | ||
TIMESTAMP = 1707208791 | ||
SHA256 (rui314-mold-v2.4.0_GH0.tar.gz) = be65f3d785d32ece7b3204ecaa57810847fdd25c232cf704cbfff2dafb1ac107 | ||
SIZE (rui314-mold-v2.4.0_GH0.tar.gz) = 9974233 | ||
SHA256 (8c99dd0f2c165e36efd4fad762158ec13004b86a.patch) = 0eccf3aee644b779e14ce4d32853460f52fb76a9c54fe9eed19e5376598b4c6f | ||
SIZE (8c99dd0f2c165e36efd4fad762158ec13004b86a.patch) = 1091 |