FORBIDDEN on 5.x: does not respect PTHREAD_{CFLAGS,LIBS}
This commit is contained in:
parent
f6d9f0dd86
commit
18f7e2ef68
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101161
2 changed files with 14 additions and 2 deletions
|
@ -24,6 +24,12 @@ USE_REINPLACE= yes
|
|||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 502102
|
||||
FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${CP} ${FILESDIR}/mntent* ${WRKSRC}/src
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
|
||||
|
@ -31,4 +37,4 @@ post-patch:
|
|||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -24,6 +24,12 @@ USE_REINPLACE= yes
|
|||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 502102
|
||||
FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${CP} ${FILESDIR}/mntent* ${WRKSRC}/src
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
|
||||
|
@ -31,4 +37,4 @@ post-patch:
|
|||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Reference in a new issue