From 559f24e3c111f3cd4deaf64286b024db67d04c38 Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Tue, 30 Sep 2014 21:12:10 -0700 Subject: [PATCH] bochs: build without libtool installed Closes Homebrew/homebrew#32832. Fixes Homebrew/homebrew#32828. --- Formula/bochs.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Formula/bochs.rb b/Formula/bochs.rb index 79607ebc05..faf69d4cef 100644 --- a/Formula/bochs.rb +++ b/Formula/bochs.rb @@ -10,6 +10,10 @@ class Bochs < Formula depends_on 'gtk+' def install + # upstream Makefile bug + # https://github.com/Homebrew/homebrew/pull/32832#issuecomment-57586763 + inreplace "configure", 'if test "$have_ltdl" = 1', 'if 0' + system "./configure", "--prefix=#{prefix}", "--with-x11", "--enable-debugger", @@ -38,12 +42,6 @@ class Bochs < Formula "--with-term", "--enable-ne2000" - # See: http://sourceforge.net/p/bochs/discussion/39592/thread/9c22887c - inreplace 'config.h', 'define BX_HAVE_LTDL 1', 'define BX_HAVE_LTDL 0' - inreplace 'Makefile' do |s| - s.gsub! /\-lltdl/, 'ltdl.o' - end - system "make" system "make install" end