Fix a null pointer subtraction bug reported by clang 13, and suppress the new clang 13 -Wunused-but-set-variable warning, as it triggers quite often in the NetBSD src tree. PR: 258508 Approved by: vanilla (maintainer) MFH: 2021Q3
43 lines
1 KiB
Makefile
43 lines
1 KiB
Makefile
# Created by: vanilla
|
|
|
|
PORTNAME= rump
|
|
PORTVERSION= 20170822
|
|
PORTREVISION= 2
|
|
CATEGORIES= misc
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
COMMENT= Virtualized NetBSD kernel components in userspace
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= only supports FreeBSD on this architecture
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= rumpkernel
|
|
GH_PROJECT= buildrump.sh
|
|
GH_TAGNAME= b914579
|
|
GH_TUPLE= rumpkernel:src-netbsd:82f3a69:netbsd/src
|
|
USE_LDCONFIG= yes
|
|
USES= compiler
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386
|
|
PLIST_SUB+= X8664=""
|
|
.else
|
|
PLIST_SUB+= X8664="@comment "
|
|
.endif
|
|
|
|
CWARNFLAGS+= -Wno-address-of-packed-member
|
|
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130
|
|
CWARNFLAGS+= -Wno-unused-but-set-variable
|
|
.endif
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; ${SETENV} CC=${CC} AR=${AR} NM=${NM} OBJCOPY=${OBJCOPY} ./buildrump.sh -F CFLAGS="${CFLAGS}" -F CWARNFLAGS="${CWARNFLAGS}" -r fullbuild
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/rump; ${PAX} -wr lib include ${STAGEDIR}${PREFIX}/
|
|
|
|
.include <bsd.port.post.mk>
|