Re: Re: [PATCHES] Fix for ODBC close

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Re: [PATCHES] Fix for ODBC close
Дата
Msg-id Pine.LNX.4.30.0102101800240.775-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Re: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Re: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
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/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: pg_ctl default shutdown mode
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: [PATCHES] Fix for ODBC close