FreeBSD Bugzilla – Attachment 97284 Details for
Bug 136002
databases/py-odbc build now respects PREFIX
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 793 bytes, created by
Robert Kruus
on 2009-06-24 16:40:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Robert Kruus
Created:
2009-06-24 16:40:03 UTC
Size:
793 bytes
patch
obsolete
>--- 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')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 136002
: 97284