mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
Fix the build with GCC 4.8. Coin mixes stdlib.h (the C header) and cstdlib
(the C++ header) quite freely, which results in conflicts and fails with recent compilers. Address this via a post-patch substitution to avoid some 70 individual patches. PR: 192133 Submitted by: Christoph Moench-Tegeder <cmt@burggraben.net>
This commit is contained in:
parent
a57552ddb6
commit
4145f4ffe0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366193
@ -28,6 +28,7 @@ MAKE_ENV= LANG=C
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|DATA install-data-local|DATA|g' ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
@${FIND} ${WRKSRC} \( -name \*.cpp -o -name \*.h -a \! -name expat.h \) -a -print0 | ${XARGS} -0 ${REINPLACE_CMD} 's/<stdlib.h>/<cstdlib>/g'
|
||||
|
||||
post-build:
|
||||
@${REINPLACE_CMD} -e '/^ldflags=/s|-R|-Wl,-rpath,|' ${WRKSRC}/coin-default.cfg
|
||||
|
Loading…
Reference in New Issue
Block a user