Bill Segall | 16 May 2011 03:55

odbc_config when cross compiling

I've been looking at using unixodbc in a cross-compiled environment and I'm currently endeavoring to build freetds on top of it.

I'm not sure if this is a common issue but it would be nice if odbc_config was a shell script rather than a binary so we could use it when cross compiling. freetds has a configure test that checks for it's existence and if it doesn't exist it seems to do the right thing so removing it in the cross-compilation environment is a good workaround.

I thought I should at least suggest that this be a shell script and leave a note for others who might hit the same issue.

Thanks,
Bill.


_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Nick Gorham | 16 May 2011 09:17
Favicon

Re: odbc_config when cross compiling

On 16/05/2011 02:55, Bill Segall wrote:
> I've been looking at using unixodbc in a cross-compiled environment 
> and I'm currently endeavoring to build freetds on top of it.
>
> I'm not sure if this is a common issue but it would be nice if 
> odbc_config was a shell script rather than a binary so we could use it 
> when cross compiling. freetds has a configure test that checks for 
> it's existence and if it doesn't exist it seems to do the right thing 
> so removing it in the cross-compilation environment is a good workaround.
>
> I thought I should at least suggest that this be a shell script and 
> leave a note for others who might hit the same issue.
>
> Thanks,
> Bill.
>
Yep, I see the point. Its not entirely the same thing, but I changed the 
configure script to generate unixodbc_conf.h using macros instead of 
running odbc_config so it would build in a cross comp environment.

The svn build or the 2.3.1pre tarball has that in.

--

-- 
Nick
_______________________________________________
unixODBC-dev mailing list
unixODBC-dev <at> mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev


Gmane