Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ghc: install static gmp in prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-nixon committed Apr 25, 2015
1 parent 0ec3717 commit 7e2169d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Formula/ghc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def install
ENV.m32 if build.build_32_bit?

# Build a static gmp (to avoid dynamic linking to ghc)
gmp_prefix = buildpath/"gmp-static"
gmp_prefix = libexec/"gmp-static"
resource("gmp").stage do
gmp_args = ["--prefix=#{gmp_prefix}", "--enable-cxx", "--enable-shared=no"]
gmp_args << "ABI=32" if build.build_32_bit?
Expand All @@ -86,6 +86,7 @@ def install
system "make", "check"
ENV.deparallelize
system "make", "install"
ENV.parallelize
end

# Move the main tarball contents into a subdirectory
Expand Down

0 comments on commit 7e2169d

Please sign in to comment.