@@ -105,6 +105,9 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> {
107 command.arg("-xc").arg(parser_path);
107 command.arg("-xc").arg(parser_path);
108+ if cfg!(all(unix, not(target_os = "macos"))) {
109+ command.arg("-Wl,-z,relro,-z,now");
110 let output = command
113 let output = command