unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: John Buckley <nhoj.buckley@gmail.com>
To: 55455@debbugs.gnu.org
Subject: bug#55455: [macOS] Fix build when using brew's libgccjit
Date: Mon, 16 May 2022 12:38:14 +0100	[thread overview]
Message-ID: <CAJDWg5FOvxzCbWsf+p_ektCXX2vtOpHf44QA_O6HkQuwiMqSoQ@mail.gmail.com> (raw)


[-- 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
 

             reply	other threads:[~2022-05-16 11:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-16 11:38 John Buckley [this message]
2022-05-16 16:07 ` bug#55455: [macOS] Fix build when using brew's libgccjit 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJDWg5FOvxzCbWsf+p_ektCXX2vtOpHf44QA_O6HkQuwiMqSoQ@mail.gmail.com \
    --to=nhoj.buckley@gmail.com \
    --cc=55455@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).