1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

textproc/jade: remove non-functional deoptimization

Long ago, this code was added to disable -O2 optimizations and
presumably remove -mcpu flags to avoid miscompilation.  Somewhere along
the line it stopped working and code is being compiled with -O2 by
default and proably with -mcpu flags if set.  The only place this seems
to be used is when checking if the compiler works early in configure.

Discovered on CheriBSD where removing -m* removed created an invalid
command line with two -Xclang flags in a row.

Reviewed by:	cy
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D43072
This commit is contained in:
Brooks Davis 2023-12-18 19:14:14 +00:00
parent a2aef21762
commit ad4aca3c28

View File

@ -45,9 +45,4 @@ post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/xml/jade
${INSTALL_DATA} ${WRKSRC}/pubtext/xml* ${STAGEDIR}${PREFIX}/share/xml/jade
.include <bsd.port.pre.mk>
# Same problem with textproc/openjade.
CPPFLAGS:= -O ${CFLAGS:N-O*:N-m*}
.include <bsd.port.post.mk>
.include <bsd.port.mk>