Are Bryne <are-pgsql-ports@communique.no> writes:
> # Assume system is ELF if it predefines __ELF__ as 1,
> # otherwise believe host_os based default.
> case $host_os in
> freebsd1*|freebsd2*) elf=yes;;
> esac
> Since $host_os is being picked up as freebsd2.2.8, this makes elf default.
Argh, that's what I get for looking at current sources and not 7.1.3.
In current sources we have
# Assume system is ELF if it predefines __ELF__ as 1,
# otherwise believe host_os based default.
case $host_os in
freebsd1*|freebsd2*) elf=no;;
freebsd3*|freebsd4*) elf=yes;;
esac
so obviously somebody figured out that freebsd2 is not using elf.
Hacking configure as you did is the right answer for 7.1.
> /usr/bin/ld -x -Bshareable -Bforcearchive execute.o typename.o
> descriptor.o data.o error.o prepare.o memory.o connect.o misc.o
> -L../../../../src/interfaces/libpq -lpq -o libecpg.so.3.2.0
> ld: no shared -lssl.2.-1 available
I don't think we can help you here. Either deselect SSL support
or install a sharable OpenSSL library.
regards, tom lane