emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 97b928ce09: MacOS ld warning from native compilation (bug#57849


From: Gerd Moellmann
Subject: emacs-28 97b928ce09: MacOS ld warning from native compilation (bug#57849)
Date: Mon, 19 Sep 2022 01:16:33 -0400 (EDT)

branch: emacs-28
commit 97b928ce09d6034ebcb541fb548e5d4862302add
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    MacOS ld warning from native compilation (bug#57849)
    
    * lisp/emacs-lisp/comp.el (native-comp-driver-options): Add "-Wl,-w"
    on Darwin systems.
    * etc/NEWS: Describe change.
---
 etc/NEWS                | 9 +++++++++
 lisp/emacs-lisp/comp.el | 5 +++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 8694b575a7..6e5ddfa066 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -30,6 +30,15 @@ with a prefix argument or by typing 'C-u C-h C-n'.
 
 * Changes in Specialized Modes and Packages in Emacs 28.3
 
+** 'native-comp-driver-options' on macOS
+
+The value of 'native-comp-driver-options' has been changed to contain
+"-Wl,-w" to suppress warnings of the form
+
+  ld: warning: -undefined dynamic_lookup may not work with chained fixups
+
+emitted during native compilation on macOS 12.6 with Xcode 14.
+
 
 * New Modes and Packages in Emacs 28.3
 
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index a5ab12ae38..d0234a81aa 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -178,14 +178,15 @@ and above."
   :type '(repeat string)
   :version "28.1")
 
-(defcustom native-comp-driver-options nil
+(defcustom native-comp-driver-options (when (eq system-type 'darwin)
+                                        '("-Wl,-w"))
   "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.
 
 Passing these options is only available in libgccjit version 9
 and above."
-  :type '(repeat string)                ; FIXME is this right?
+  :type '(repeat string)
   :version "28.1")
 
 (defcustom comp-libgccjit-reproducer nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]