Closed DoomHammer closed 8 years ago
Does adding a zlib
dependency resolve this issue?
depends_on "zlib" unless OS.mac?
Nope, it won't get found this way as configure
script doesn't have -L$(brew --prefix)/lib
.
-L$(brew --prefix)/lib
is already in the LDFLAGS
and LIBRARY_PATH
environment variable. See
$ brew --env |egrep 'FLAGS|LIBRARY'
export CFLAGS="-Os -w -pipe -march=core2"
export CXXFLAGS="-Os -w -pipe -march=core2"
export CPPFLAGS="-isystem/home/sjackman/.linuxbrew/include"
export LDFLAGS="-L/home/sjackman/.linuxbrew/lib -Wl,--dynamic-linker=/home/sjackman/.linuxbrew/lib/ld.so -Wl,-rpath,/home/sjackman/.linuxbrew/lib"
export LIBRARY_PATH="/home/sjackman/.linuxbrew/lib"
Does not reproduce on linuxbrew/linuxbrew
. Must have been some quantum mechanics.
My guess is that it was fixed by faf5144.
If there is no system-wide
zlib
installed brewinglibxml2
fails with (more in a gist):The root-casue seems to be that
-lz
is never specified (runningmake V=1
):libxml2
'sconfigure
script provides--with-zlib
option. Should this be added just to Linuxbrew or perhaps to Homebrew as a--with-brewed-zlib
option (and made default perhaps on Linux)?