Re: OT: looking for a sample makefile for shared library of ESP in 64 bit

Michael Peppler <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
On Tue, 2004-09-21 at 16:25, Lin, Arthur wrote:
> My shared library of ESPs currently is working perfectly with 
> XP Server/12.0.0.4/P/SWR 10044 ESD 2/Sun_svr4/OS 5.6/1789/32bit/OPT/Mon
> Feb  4 17:28:25 2002
> 
> We are going to upgrade our ASE 12.0 to ASE 12.5 so 
> I would like to compile my shared library of ESPs into 64-bit.
> 
> Here is my new xpserver :
> XP Server/12.5.2/EBF 11791/P/Sun_svr4/OS 5.8/ase1252/1831/64-bit/OPT/Fri
> Apr  9 04:33:45 2004
> And my compiler is Sun WorkShop 6.2.

I don't have a working Makefile, but for sybperl/DBD::Sybase the only
difference when building in 64bit mode is:

Add -DSYB_LP64 to CPPFLAGS or CFLAGS
Change any -l(sybase library) to -l(sybase library)64

There may be a flag that you need to pass to the C compiler to generate 
64bit code. If so it should be pretty easy to find in the compiler
docs...

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
[email protected]                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.