jscasallas/homebrew — Issue #17: [linux] autotools formulae not generating shared libraries
Author: jscasallas
Created: 2012-02-08 17:25:55+00:00
State: open

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

```sh
...
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)

```sh
bash-3.2$ cat /etc/*-release
Red Hat Enterprise Linux Client release 5.7 (Tikanga)
```

```sh
bash-3.2$ libtool --features
host: x86_64-redhat-linux-gnu
enable shared libraries
enable static libraries
```