Re: Re: [PATCHES] Fix for ODBC close - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Re: [PATCHES] Fix for ODBC close
Date
Msg-id Pine.LNX.4.30.0102101800240.775-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Re: [PATCHES] Fix for ODBC close  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: pg_ctl default shutdown mode
Next
From: Bruce Momjian
Date:
Subject: Re: Re: [PATCHES] Fix for ODBC close