From 9bfd07aa4dd969c4611ff8bdf65470f56f51cba5 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 10 Mar 2012 10:49:41 -0800 Subject: emacs: fix linking on X11 Borrow a fix from MacPorts to fix x11 support --- Library/Formula/emacs.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index 87a32325a..5fb1e538d 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -79,6 +79,10 @@ class Emacs < Formula else if ARGV.include? "--with-x" ENV.x11 + # These libs are not specified in xft's .pc. See: + # https://trac.macports.org/browser/trunk/dports/editors/emacs/Portfile#L74 + # https://github.com/mxcl/homebrew/issues/8156 + ENV.append 'LDFLAGS', '-lfreetype -lfontconfig' args << "--with-x" args << "--with-gif=no" << "--with-tiff=no" << "--with-jpeg=no" else -- cgit v1.2.3