Hisham <h <at> hisham.hm> writes:

> My copy of libiodbc certainly includes libodbc.so. But I just
> installed unixodbc to test and your module just built fine.
> 
> I just uploaded the module to the repo. Thank you!
> 

This library already should build with iODBC if there exists `libodbc`.
I update tag v0.1.0(before you upload it).
This rockspec with setted libdirs
https://raw.github.com/moteus/lua-odbc/master/rockspec/odbc-0.1.0-2.rockspec

What do you think abount alternative or optional external deps.
ODBC = {
  { -- unixODBC
    header  = 'sql.h',
    library = 'odbc',
    defines = {'UNIXODBC'}, -- with unixODBC we have to define this
  },
  { -- iODBC
    header    = 'sql.h',
    library   = 'iodbc',
    defines   = {'IODBC'}, -- ? for example
  },
}
and in build rule can use $(ODBC_LIBNAME) and $(ODBC_DEFINE).
This is kinde of `needs` from `lake`.
Each variant define rule for detection and some stuff for building(e.g.
libraries, defines, include and lib dirs)
But rule to detect what version is realy use can be difficult (iODBC may
create `libodbc` library; to use static libffi on windows we need define
'FFI_BUILDING' (i use it to build alien) ).




------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to