Lines 54-61
Link Here
|
54 |
else: |
54 |
else: |
55 |
# Other posix-like: Linux, Solaris, etc. |
55 |
# Other posix-like: Linux, Solaris, etc. |
56 |
|
56 |
|
|
|
57 |
try: |
58 |
include = '-I'+os.environ['PREFIX']+'/include' |
59 |
lib = '-L'+os.environ['PREFIX']+'/lib' |
60 |
except: |
61 |
include = '-I/usr/local/include' |
62 |
lib = '-L/usr/local/lib' |
63 |
|
57 |
# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot* |
64 |
# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot* |
58 |
extra_compile_args = ['-Wno-write-strings'] |
65 |
extra_compile_args = ['-Wno-write-strings', include, lib] |
|
|
66 |
extra_link_args = [ lib ] |
59 |
|
67 |
|
60 |
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? |
68 |
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? |
61 |
libraries.append('odbc') |
69 |
libraries.append('odbc') |