ports/databases/py-odbc/files/patch-setup-libs
Martin Wilke e9b0c36292 pyodbc is a Python module that allows you to use ODBC to connect to
almost any database from Windows, Linux, OS/X, and more.

It implements the Python Database API Specification v2.0, but
additional features have been added to simplify database
programming even more.

WWW:	http://code.google.com/p/pyodbc/

PR:		ports/133757
Submitted by:	Robet Kruus <rob.kruus@gmail.com>
2009-05-05 00:21:12 +00:00

12 lines
596 B
Text

--- setup.py.orig 2008-12-06 10:34:24.000000000 -0600
+++ setup.py 2009-01-15 14:56:00.648997526 -0600
@@ -40,7 +40,8 @@
# Other posix-like: Linux, Solaris, etc.
# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot*
- extra_compile_args = ['-Wno-write-strings']
+ extra_compile_args = ['-Wno-write-strings', '-I/usr/local/include', '-L/usr/local/lib']
+ extra_link_args = ['-L/usr/local/lib']
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
libraries.append('odbc')