unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55455: [macOS] Fix build when using brew's libgccjit
@ 2022-05-16 11:38 John Buckley
  2022-05-16 16:07 ` Robert Pluim
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: John Buckley @ 2022-05-16 11:38 UTC (permalink / raw)
  To: 55455


[-- Attachment #1.1: Type: text/plain, Size: 845 bytes --]

libgccjit installed via Homebrew now uses the correct .dylib dynamic library
extension on macOS. This causes configure to fail because it is still
using the .so extension.

The attached patch fixes the libgccjit library extension in configure.ac

In GNU Emacs 28.1.50 (build 2, x86_64-apple-darwin21.4.0, NS appkit-2113.40
Version 12.3.1 (Build 21E258))
 of 2022-04-25 built on iMac-Pro.local
Repository revision: 7c1fc2348918a1ad8c61c7519a51042d48d7aa8d
Repository branch: emacs-28
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.3.1

Configured using:
 'configure --with-native-compilation'

Configured features:
ACL GMP GNUTLS JSON LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER
THREADS TOOLKIT_SCROLL_BARS ZLIB

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

[-- Attachment #1.2: Type: text/html, Size: 1135 bytes --]

[-- Attachment #2: configure.ac.patch --]
[-- Type: application/octet-stream, Size: 501 bytes --]

diff --git a/configure.ac b/configure.ac
index 7314eb6978..9ed064b184 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3844,7 +3844,7 @@ AC_DEFUN
           MAC_CFLAGS="-I$(dirname $($BREW ls -v libgccjit | \
                                                 grep libgccjit.h))"
           MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit| \
-                                            grep libgccjit.so\$))"
+                                            grep libgccjit.dylib\$))"
         fi
       fi
 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-16 19:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16 11:38 bug#55455: [macOS] Fix build when using brew's libgccjit John Buckley
2022-05-16 16:07 ` Robert Pluim
2022-05-16 16:11 ` John Buckley
2022-05-16 16:21 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-16 16:22 ` Eli Zaretskii
2022-05-16 19:00   ` John Buckley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).