|> The Makefile.shlib changes will have to be discussed with other Linux
authorBruce Momjian <bruce@momjian.us>
Fri, 7 Jul 2000 01:23:44 +0000 (01:23 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 7 Jul 2000 01:23:44 +0000 (01:23 +0000)
commit16e948781c5a7348f392ba2f26cb03b52fc60942
tree073e5116f0d3e714dc5ac70191a4aa72b236c429
parentd800532536d98b6eb2dd891ced54660f81445d04
|> The Makefile.shlib changes will have to be discussed with other Linux
|> developers so we are sure it will work on all platforms.

The problem with the current settings is that the linker is called
directly.  This is wrong, it should always be called through the
compiler
driver (the only exception is `ld -r').  This will make sure that the
necessary libraries like libgcc are linked in.

But there is still a different problem with the setting of LDFLAGS_ODBC.
The psqlodbc module defines the functions _init and _fini which are
reserved for the shared library initialisation.  These should be changed
to constructor functions.  Then LDFLAGS_ODBC can be changed to be just
`-lm'.  Btw, why does it use -Bsymbolic?

Andreas Schwab
src/Makefile.shlib
src/interfaces/odbc/psqlodbc.c