My favorites
▼
|
Sign in
pyodbc
Python ODBC library
Project Home
Downloads
Wiki
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
280
attachment: freebsd.setup.py.patch
(837 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- setup.py 2012-06-24 17:49:34.000000000 -0500
+++ setup.py 2012-08-02 12:33:05.000000000 -0500
@@ -150,8 +150,16 @@
else:
# Other posix-like: Linux, Solaris, etc.
+ try:
+ include = '-I'+os.environ['PREFIX']+'/include'
+ lib = '-L'+os.environ['PREFIX']+'/lib'
+ except:
+ include = '-I/usr/local/include'
+ lib = '-L/usr/local/lib'
+
# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot*
- settings['extra_compile_args'] = ['-Wno-write-strings']
+ settings['extra_compile_args'] = ['-Wno-write-strings', include, lib]
+ settings['extra_link_args'] = [ lib ]
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
settings['libraries'].append('odbc')
Powered by
Google Project Hosting