Path to this page:
Subject: CVS commit: pkgsrc/textproc/openjade
From: Greg Troxel
Date: 2019-11-23 19:55:54
Message id: 20191123185554.952FDFA97@cvs.NetBSD.org
Log Message:
textproc/openjade: Work around buggy openjade code harder!
openjade has some buggy code, which relies on storage remaining valid
when the C++ standard says that it is undefined:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9
Recent gcc removes code that writes to this about-to-be-undefined
storage, shrinking the openjade binary. Some versions further result
in a binary which crashes.
pkgsrc had a workaround to add -fno-tree-dse when PKGSRC_COMPILER was
equal to gcc. That is buggy, because "ccache gcc", "distcc gcc",
etc. should also get the workaround. This commit replaces the exact
test with a pattern match.
Now, the workaround gcc flag is passed when compiling with ccache.
Fixes pkg/54134. Note that the comments in the PR which implicate
ccache as buggy turned out to be untrue.
Files: