Skip to Content.
Sympa Menu

freetds - Re: [freetds] win64 dll shared library

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] win64 dll shared library
  • Date: Wed, 18 Aug 2010 10:27:44 +0200

2010/8/17 Thomas Stover <thomas AT wsinnovations.com>:
> I recently revisited cross compiling from linux to windows.
>
> ubuntu 10.04 (mingw32 that comes in the repos) works just fine
>
> $mkdir win32output
> $./configure --host=i586-mingw32msvc --prefix=`pwd`/win32output
> --enable-shared
> $make
> $make install
> $ls win32output/bin/
> bsqldb.exe  bsqlodbc.exe  datacopy.exe  defncopy.exe  freebcp.exe
> libct-4.dll  libsybdb-5.dll  libtdsodbc-0.dll  osql  tdspool.exe  tsql.exe
>
> note that the dlls are created.
>
> Now on ubuntu 10.04 (prebuilt mingw-w64 8/17/2010 from
> mingw-w64.sourceforge.net)
>
> $mkdir win64
> $export PATH=$PATH:/home/thomas/mingw-w64-bin_i686-linux_20100817/bin
> $./configure --host=x86_64-w64-mingw32 --prefix=`pwd`/win64
> --enable-shared
> $make
> $make install
> $ls win64/bin
> bsqldb.exe  bsqlodbc.exe  datacopy.exe  defncopy.exe  freebcp.exe  osql
> tdspool.exe  tsql.exe
> $ls win64/lib
> libct.a  libct.la  libsybdb.a  libsybdb.la  libtdsodbc.a  libtdsodbc.la
>
> No dlls are created. Is shared library / dll creation supported for win64?
>

Probably a libtool problem, in my script I have these lines (after
configure, before make)

cp libtool libtool.tmp
cat libtool.tmp | sed -e 's,file format pe-i386,file format
pe-(x86-64|i386),' > libtool

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page