summaryrefslogtreecommitdiff
path: root/libcpp/Makefile.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-12 09:17:34 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-12 09:17:45 -0700
commit051da74259d5ebbfaa5b363dd09dbe16a955d8a1 (patch)
treea94dd898309fea2bc4cab17cc7e7b5e5f5de2813 /libcpp/Makefile.in
parent7e9c5bb0fd22fb4573d270de241d9b56de17f7f5 (diff)
libcpp: Enable Intel CET on Intel CET enabled host for jit
Since on Intel CET enabled host, dlopen in Intel CET enabled applications fails on shared libraries which aren't Intel CET enabled, compile with -fcf-protection on Intel CET enabled host when jit is enabled to enable Intel CET on libgccjit. * Makefile.in (CET_HOST_FLAGS): New. (COMPILER): Add $(CET_HOST_FLAGS). * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't enabled. * aclocal.m4: Regenerated. * configure: Likewise.
Diffstat (limited to 'libcpp/Makefile.in')
-rw-r--r--libcpp/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in
index 3d9ca0baaf6..ebbca07f542 100644
--- a/libcpp/Makefile.in
+++ b/libcpp/Makefile.in
@@ -58,6 +58,7 @@ CXXDEPMODE = @CXXDEPMODE@
DEPDIR = @DEPDIR@
NOEXCEPTION_FLAGS = @noexception_flags@
PICFLAG = @PICFLAG@
+CET_HOST_FLAGS = @CET_HOST_FLAGS@
datarootdir = @datarootdir@
datadir = @datadir@
@@ -73,9 +74,10 @@ depcomp = $(SHELL) $(srcdir)/../depcomp
INCLUDES = -I$(srcdir) -I. -I$(srcdir)/../include @INCINTL@ \
-I$(srcdir)/include
-ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(PICFLAG)
+ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(PICFLAG) \
+ $(CET_HOST_FLAGS)
ALL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(NOEXCEPTION_FLAGS) $(INCLUDES) \
- $(CPPFLAGS) $(PICFLAG)
+ $(CPPFLAGS) $(PICFLAG) $(CET_HOST_FLAGS)
# The name of the compiler to use.
COMPILER = $(CXX)