Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#6000 closed defect (fixed)

Native windows ODBC support for mingw64 compile

Reported by: robe Owned by: warmerdam
Priority: normal Milestone: 2.0.3
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:


As mentioned in my blog entry -

there is no current way (at least not one I could find) that allows building ODBC with native windows ODBC under mingw64 without hacking the configure script. I'm working on a patch to do that and think I have it almost ready to commit once I've gotten it working with mingw64-w32. The way it works is that if --with-odbc is selected and it finds the odbc windows bindings (but not the others), it will use the odbc windows bindings. So it's not so specific to mingw64.

Attachments (2) (2.2 KB ) - added by robe 8 years ago. (2.2 KB ) - added by robe 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Even Rouault, 9 years ago

Any update on this ?

comment:2 by robe, 8 years ago

Attached is a patch for 2.0 and 2.1 branch. I also tested on Debian 7 that has UnixODBC to make sure it didn't clubber configure on that.

This I tested with mingw64-w64 and mingw64-w32 chains.

by robe, 8 years ago

by robe, 8 years ago

comment:3 by Even Rouault, 8 years ago

I've slightly modified your patch. Please check it still works for you. If so, I'll backport it

trunk r33619 "configure: add support for ODBC autodetection with mingw64 (derived from patch by Regina Obe, #6000)"

comment:4 by robe, 8 years ago

Yap still works on both my 64bit and 32-bit builds.

comment:5 by Even Rouault, 8 years ago

Component: defaultConfigBuild
Resolution: fixed
Status: newclosed

Applied in branches/2.0 r33625

Last edited 8 years ago by Even Rouault (previous) (diff)
Note: See TracTickets for help on using tickets.