commit e7ae8fa0ff68290bf542ce584771be3c8b27ad01 from: Murilo Ijanc date: Sat Apr 25 18:45:57 2026 UTC extend link.mk with BUILD_ENV for compile-time env vars commit - ce35e7331aa32562e8b257ee89084a3b411b5f30 commit + e7ae8fa0ff68290bf542ce584771be3c8b27ad01 blob - 2fcccf6a21115b24762219a209c7e1ec0a13004e blob + 99a6439675d13748503e7c3b7587c40b001bc369 --- link.mk +++ link.mk @@ -14,7 +14,12 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -# Native libs required by consumers that vendor http.rs. Read by +# Build-time metadata for consumers that vendor http.rs. Read by # marmita(1) on `add`/`update` and copied to vendor/.mk so the # consumer's Makefile can pick it up via -include $(wildcard vendor/*.mk). +# +# LINK_FLAGS: native libs added to the bin link step. +# BUILD_ENV: env vars exported when compiling vendor/http.rs as rlib +# (http.rs reads HTTP_VERSION via env! at compile time). LINK_FLAGS += -ltls -lcrypto +BUILD_ENV += HTTP_VERSION=$(VERSION)