<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Overlay on PlumePHP</title><link>https://plumephp.com/tags/overlay/</link><description>Recent content in Overlay on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 26 Sep 2026 14:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/overlay/index.xml" rel="self" type="application/rss+xml"/><item><title>交叉编译与 overlay：异构构建全攻略</title><link>https://plumephp.com/nix-cross-compilation-overlay/</link><pubDate>Sat, 26 Sep 2026 14:00:00 +0800</pubDate><guid>https://plumephp.com/nix-cross-compilation-overlay/</guid><description>&lt;h2 id="1-交叉编译为什么难nix-为什么能做好"&gt;1. 交叉编译为什么难，Nix 为什么能做好&lt;/h2&gt;
&lt;p&gt;传统交叉编译的痛点：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;工具链混乱：&lt;code&gt;arm-linux-gnueabihf-gcc&lt;/code&gt;、&lt;code&gt;aarch64-linux-gnu-gcc&lt;/code&gt; 各种前缀，依赖库也要为 target 编译&lt;/li&gt;
&lt;li&gt;依赖地狱：一个库的交叉编译依赖链很长，手工管理必然出错&lt;/li&gt;
&lt;li&gt;环境漂移：编译机的 glibc/内核头文件影响产物&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Nix 的两大机制让它成为交叉编译的最优解：&lt;/p&gt;</description></item></channel></rss>