pdf2image: force std
Superenv is stripping flags this needs to compile. Based on a comment, this formula is using flags in a slightly non-standard way. Fixes Homebrew/homebrew#16186.
This commit is contained in:
parent
3b67e60f88
commit
45648b8d08
1 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,9 @@ class Pdf2image < Formula
|
|||
|
||||
depends_on :x11
|
||||
|
||||
# superenv strips flags that are needed for the build to succeed
|
||||
env :std
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
|
||||
|
@ -15,7 +18,8 @@ class Pdf2image < Formula
|
|||
inreplace "Makefile", "/man/", "/share/man/"
|
||||
|
||||
# Add X11 libs manually; the Makefiles don't use LDFLAGS properly
|
||||
inreplace ["src/Makefile", "xpdf/Makefile"], "LDFLAGS =", "LDFLAGS=-L#{MacOS::X11.lib}"
|
||||
inreplace ["src/Makefile", "xpdf/Makefile"],
|
||||
"LDFLAGS =", "LDFLAGS=-L#{MacOS::X11.lib}"
|
||||
|
||||
system "make"
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue