mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Add -O to CFLAGS on FreeBSD 6.x to work around build failuer with -O2.
Reported by: pointyhat
This commit is contained in:
parent
620661c1d5
commit
983c4b9765
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120704
@ -28,6 +28,12 @@ MLINKS= mpgtx.1 mpgcat.1 \
|
||||
mpgtx.1 mpgjoin.1 \
|
||||
mpgtx.1 mpgsplit.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} > 600000
|
||||
CFLAGS+= -O
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g ; \
|
||||
s|\$$cflags \$$optimization_cflags|$$cflags|g ; \
|
||||
@ -41,4 +47,4 @@ do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/man/mpgtx.1 ${MANPREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/man/tagmp3.1 ${MANPREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user