mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
bbb62f89cb
PR: 136002 Submitted by: Robert Kruus <rob.kruus@gmail.com> (maintainer)
23 lines
796 B
Plaintext
23 lines
796 B
Plaintext
--- setup.py.orig 2009-04-15 14:10:36.000000000 -0600
|
|
+++ setup.py 2009-06-24 09:15:04.203757061 -0600
|
|
@@ -54,8 +54,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*
|
|
- extra_compile_args = ['-Wno-write-strings']
|
|
+ extra_compile_args = ['-Wno-write-strings', include, lib]
|
|
+ extra_link_args = [ lib ]
|
|
|
|
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
|
|
libraries.append('odbc')
|
|
|
|
|