Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

build: use non-PIE Linux release executable

ldm008660b12becc
diff --git a/.cargo/config.toml b/.cargo/config.toml
index dadd0de27..5083f18bc 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -4,6 +4,12 @@
# [target.'cfg(all(target_os = "linux", target_env = "gnu"))']
# rustflags = ["-C", "link-arg=-Wl,-z,pack-relative-relocs"]
+# Avoid the large runtime relocation table emitted by the default PIE link.
+# This gives up main-executable ASLR and applies to all Cargo profiles because
+# target rustflags cannot be scoped to release builds.
+[target.'cfg(all(target_os = "linux", target_env = "gnu", target_arch = "x86_64"))']
+rustflags = ["-C", "link-arg=-Wl,--no-pie"]
+
# Most local tests spin up direct in-process HTTP servers and assert on
# exact request/response behavior. In this environment, inheriting the
# shell proxy settings would route those test requests through the host