Skip to Content.
Sympa Menu

freetds - Re: [freetds] 64-bit ODBC driver build??

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Nilesh Dhawale <ndhawale AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] 64-bit ODBC driver build??
  • Date: Thu, 14 Oct 2004 15:16:18 -0400

Thanks for the info.
Nilesh

> > Just get a DM that support 64-bit (like recent unixODBC) and compile it.
> > Perhaps there can be some problems with platforms that support 32 and 64
> > bit at the same time, in this case use CFLAGS/LDFLAGS (calling
> > configure, not only compile) to use correct compiler flags.
> >

> I am not sure if I understand it completely. You mean to modify the
> make file to change the options for the 64-bit build; but there is no
> option to the configure script that would do that, right? Is that
> something that wlll be supported soon?

There are at least two ways to sed CFLAGS/LDFLAGS cor 'configure'. Set
then in your environment or create a

[install-prefix]/etc/config.site file

like this one for an UltraSPARC:

# /etc/config.site
CC="gcc -mcpu=ultrasparc -mtune=ultrasparc -m64"
[...]
CFLAGS="-O3"
[...]
LDFLAGS="-64 -L/opt/gnu/lib [...]"

Your compiler manpage will tell you which ones to use.
In case you have 64-bit-only platform like DEC Alpha I assume the
compiler will create 64 bit binaries without being explicitly told to
do so,
I forgot another option which is valid with MIPSPro on IRIX. There is a

/etc/compiler.defaults

file which could look like this:

sirius: 9:01:25 ~> cat /etc/compiler.defaults
-DEFAULT:abi=64:isa=mips4:proc=r10k

Note that, while the N64 ABI is simply called '64', you have to put
'n32' for the N32 ABI (to differenciate from 'o32'),

--
Nilesh Dhawale
http://www.cs.albany.edu/~nilesh
--



  • Re: [freetds] 64-bit ODBC driver build??, Nilesh Dhawale, 10/14/2004

Archive powered by MHonArc 2.6.24.

Top of Page