Skip to content

Commit

Permalink
devel/mpatrol: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Add LICENSE GPLv2

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jul 22, 2023
1 parent fbb3f1c commit 177f895
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion devel/mpatrol/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mpatrol
PORTVERSION= 1.4.8
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${PORTVERSION}
Expand All @@ -9,6 +9,9 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Dynamic memory debugging and profiling library
WWW= http://mpatrol.sourceforge.net/

LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/../../COPYING

ONLY_FOR_ARCHS= amd64 i386
.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
BROKEN_i386= ld: error: relocation R_386_PC32 cannot be used against symbol __mp_init
Expand Down Expand Up @@ -42,6 +45,10 @@ OPTIONS_DEFINE= DOCS
CFLAGS+= -DENVIRON=\"ENVIRON_64\" -DMP_INIT_SUPPORT=0
.endif

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=dynamic-exception-spec
.endif

do-install:
.for file in hexwords mpedit mpsym mupdate
${INSTALL_SCRIPT} ${WRKSRC}/../../bin/${file} ${STAGEDIR}${PREFIX}/bin
Expand Down

0 comments on commit 177f895

Please sign in to comment.