"Tsimbalist, Igor V" <igor.v.tsimbal...@intel.com> writes:

> Enable building libbacktrace with CET options.
>
> libbacktrace/
>       * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
>       * aclocal.m4: Regenerate.
>       * Makefile.in: Likewise.
>       * configure: Likewise.

> +if test x$enable_cet = xyes; then
> +  CET_FLAGS="-fcf-protection -mcet -include cet.h"
> +fi

Is this really right?  Why the -include option?  CET protection sounds
like it should work for any language, but -include is C-specific and
doesn't seem to have anything to do with code generation.

Of course, for libbacktrace, that is a generated file.  The patch to
libbacktrace/configure.ac is fine if the general approach is approved.

Ian

Reply via email to