Properly replace all -pthread occurances to make it working on
-current with the new gcc.
This commit is contained in:
parent
3f17e38ea9
commit
7b6c469e16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88756
1 changed files with 7 additions and 4 deletions
|
@ -40,9 +40,12 @@ post-extract:
|
|||
@${RM} -f ${WRKSRC}/docs/mikmod.info-*
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|\$$CFLAGS -pthread|\$$CFLAGS ${PTHREAD_CFLAGS}|g ; \
|
||||
s|-pthread \$$REENTRANT|\$$REENTRANT ${PTHREAD_CFLAGS}|g ; \
|
||||
s|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \
|
||||
s|-lc_r|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|\$$CFLAGS -pthread|\$$CFLAGS ${PTHREAD_CFLAGS}|g' \
|
||||
-e 's|-pthread \$$REENTRANT|\$$REENTRANT ${PTHREAD_CFLAGS}|g' \
|
||||
-e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \
|
||||
-e 's|-pthread|${PTHREAD_LIBS:S/"//g}|g' \
|
||||
-e 's|-lc_r|${PTHREAD_LIBS:S/"//g}|g' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Reference in a new issue