summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-05-25 18:53:31 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-05-27 22:29:55 +0200
commitfa98adbd04de9d44ce921436b92589a41f285dcd (patch)
tree608a791b4c52bf0fb9dcf7a0769bac14b9a19289 /configure.json
parent9c31acbf47a6f3d11da30b56f2499493b70064bc (diff)
Fix compilation of PCRE2 under Intel CET
Ubuntu 20.04 enables -fcf-protection by default. PCRE2 10.35 sees this but complains that -mshstk is also necessary to build its JIT. Detect whether the compiler is enabling Intel CET automatically, and if so, build PCRE2 with the right options. Pick-to: 5.15 Change-Id: I3440e689b81f4f07055f211a4fa7331a43eb410d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.json b/configure.json
index 6d1385dafe..c174b45262 100644
--- a/configure.json
+++ b/configure.json
@@ -635,6 +635,17 @@
"label": "ccache",
"type": "files",
"files": [ "ccache" ]
+ },
+ "intelcet": {
+ "label": "Support for Intel Control-flow Enforcement Technology",
+ "type": "compile",
+ "test": {
+ "main": [
+ "#if !defined(__CET__)",
+ "# error Intel CET not available",
+ "#endif"
+ ]
+ }
}
},
@@ -1401,6 +1412,11 @@
"autoDetect": "features.shared",
"condition": "features.dlopen || config.win32 || !features.shared",
"output": [ "privateFeature" ]
+ },
+ "intelcet": {
+ "label": "Using Intel CET",
+ "condition": "tests.intelcet",
+ "output": [ "privateFeature" ]
}
},