-
Notifications
You must be signed in to change notification settings - Fork 13
/
native-comp.patch
14 lines (13 loc) · 935 Bytes
/
native-comp.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el b/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el
index e97832455b9..b04cfa00c33 100644
--- a/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el
+++ b/usr/share/emacs/@@VERSION@@/lisp/emacs-lisp/comp.el
@@ -186,8 +186,7 @@ and above."
:type '(repeat string)
:version "28.1")
-(defcustom native-comp-driver-options (when (eq system-type 'darwin)
- '("-Wl,-w"))
+(defcustom native-comp-driver-options (when (getenv "SNAP_USER_COMMON") (list (concat "--sysroot=" (file-name-as-directory (getenv "SNAP_USER_COMMON")) "sysroot/") (concat "-B" (file-name-as-directory (getenv "SNAP_USER_COMMON")) "sysroot/usr/lib/gcc/")))
"Options passed verbatim to the native compiler's back-end driver.
Note that not all options are meaningful; typically only the options
affecting the assembler and linker are likely to be useful.