]> git.eshelyaron.com Git - emacs.git/commitdiff
MacOS ld warning from native compilation (bug#57849)
authorGerd Möllmann <gerd@gnu.org>
Sun, 18 Sep 2022 06:05:52 +0000 (08:05 +0200)
committerGerd Möllmann <gerd@gnu.org>
Mon, 19 Sep 2022 05:14:58 +0000 (07:14 +0200)
* lisp/emacs-lisp/comp.el (native-comp-driver-options): Add "-Wl,-w"
on Darwin systems.
* etc/NEWS: Describe change.

etc/NEWS
lisp/emacs-lisp/comp.el

index 8694b575a7a61f4fb5bd3bff1b1e994ed88fbed9..6e5ddfa06627c4b2aa3e88fa16b19339e05de9fb 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -30,6 +30,15 @@ with a prefix argument or by typing 'C-u C-h C-n'.
 \f
 * 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.
+
 \f
 * New Modes and Packages in Emacs 28.3
 
index a5ab12ae38859ab3c9fe581a1c324723326fff37..d0234a81aa5fd0a9c2242c9b252f3ece715a54ca 100644 (file)
@@ -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