casallas / homebrew

A fork of homebrew with 3d, VR, and CV related formulas. There is also a linux branch
http://mxcl.github.com/homebrew
Other
1 stars 0 forks source link

[linux] autotools-based formulae not generating shared libraries #17

Closed casallas closed 12 years ago

casallas commented 12 years ago

The problem starts when doing ./configure, for example, libyaml at some point it says:

...
checking whether the /usr/bin/gcc linker (/usr/bin/gcc -m elf_x86_64) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
...

And at the end I only get libyaml.a and not libyaml.so.

Interestingly if I try to install the library "manually" (without brew) I do get shared libraries. I guess this is a problem with brew's ENV flags. I've played with them (change -O3 to -O2, remove -m64, etc.. ) but still nothing... (I've also tried updating binutils, libtool, autotools and m4 without any success)

bash-3.2$ cat /etc/*-release
Red Hat Enterprise Linux Client release 5.7 (Tikanga)
bash-3.2$ libtool --features
host: x86_64-redhat-linux-gnu
enable shared libraries
enable static libraries
casallas commented 12 years ago

cmake-based formulae are exempt of this problem.