分享一个问题解决方案,如果遇到 类似 library not found
Compiling /Users/jixiuf/gccemacs/share/emacs/28.0.50/lisp/net/tramp.el.gz...
uncompressing tramp.el.gz...
uncompressing tramp.el.gz...done
ld: library not found for -lgcc_ext.10.5
libgccjit.so: error: error invoking gcc driver
可以通过在启动脚本里设置LIBRARY_PATH 的方法解决,也可以在early-init.el 内通过setenv 解决
#!/bin/bash
# 删除文件大小为0 的 eln
find ~/.emacs.d/eln-cache -type f -size -1 -exec rm -f {} \;
LIBRARY_PATH=/usr/local/opt/gcc/lib/gcc/10:/usr/local/opt/gcc/lib/gcc/10/gcc/x86_64-apple-darwin19/10.2.0 exec /Users/jixiuf/gccemacs/bin/emacs "$@"