Bruce Momjian writes:
> I replaced the 'ld' with 'gcc -Wl', and that prevents the need for the
> crt1.o.
>
> It still requires -lc:
>
> ifneq ($(PORTNAME), bsdi)
> LINK.shared += $(shlib_symbolic)
> else
> LINK.shared = gcc -shared -Wl,-Bsymbolic,-soname,$(soname)
> SHLIB_LINK += -lc
> endif
You can't hardcode "gcc" like that. I've committed some fixes that should
work for you. Please try them out. Also try to build libpq++.
> It seems the -Bsymbolic needs the gcc, while other links are OK with ld.
> We may find this is true on many platforms.
-Bsymbolic requires all symbols in the library to be resolvable at link
time. If you use 'ld' then you will need to provide all the appropriate
files yourself. The compiler driver normally does that automatically.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/