Fix build with -O2 on 6.x
This commit is contained in:
parent
2bcc063df5
commit
71c537e275
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124094
1 changed files with 2 additions and 2 deletions
|
@ -31,12 +31,12 @@ MLINKS= mpgtx.1 mpgcat.1 \
|
|||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} > 600000
|
||||
CFLAGS+= -O
|
||||
CFLAGS+= -fno-unit-at-a-time
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g ; \
|
||||
s|\$$cflags \$$optimization_cflags|$$cflags|g ; \
|
||||
s|\$$cflags \$$optimization_cflags|${CFLAGS}|g ; \
|
||||
s|g++|${CXX}|g; s|-pedantic||' ${WRKSRC}/configure
|
||||
|
||||
do-install:
|
||||
|
|
Loading…
Reference in a new issue