Compile the grammar libraries with full RELRO on Linux (#599)
* Compile the grammar libraries with full RELRO * Set RELRO compiler options for only Linux
This commit is contained in:
parent
14c08e855f
commit
9912bd7821
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,9 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> {
|
|||
}
|
||||
}
|
||||
command.arg("-xc").arg(parser_path);
|
||||
if cfg!(all(unix, not(target_os = "macos"))) {
|
||||
command.arg("-Wl,-z,relro,-z,now");
|
||||
}
|
||||
}
|
||||
|
||||
let output = command
|
||||
|
|
Loading…
Reference in a new issue