Skip to content

Commit

Permalink
Assume unixODBC on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleehammer committed Apr 25, 2015
1 parent 04dee48 commit aa178bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,3 +9,4 @@ tmp
TAGS
pyodbc.egg-info
pyodbc.conf
/venv*
5 changes: 3 additions & 2 deletions setup.py
Expand Up @@ -159,8 +159,9 @@ def get_compiler_settings(version_str):
settings['libraries'].append('odbc32')

elif sys.platform == 'darwin':
# OS/X now ships with iODBC.
settings['libraries'].append('iodbc')
# The latest versions of OS X no longer ship with iodbc. Assume
# unixODBC for now.
settings['libraries'].append('odbc')

# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot*
settings['extra_compile_args'].extend([
Expand Down

0 comments on commit aa178bf

Please sign in to comment.