Skip to content

Commit

Permalink
Add /usr/local/lib to library_dirs linker setting for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
neilodonuts committed Sep 5, 2017
1 parent 8277073 commit 9dc5aff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ def get_compiler_settings(version_str):
dirs = ['/usr/local/include', '/opt/local/include','~/homebrew/include']
settings['include_dirs'].extend(dir for dir in dirs if isdir(dir))

# unixODBC make/install places libodbc.dylib in /usr/local/lib/ by default
# ( also OS/X since El Capitan prevents /usr/lib from being accessed )
settings['library_dirs'] = [ '/usr/local/lib' ]

else:
# Other posix-like: Linux, Solaris, etc.

Expand Down

0 comments on commit 9dc5aff

Please sign in to comment.