diff options
Diffstat (limited to 'MySQLdb/setup.py')
-rw-r--r-- | MySQLdb/setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MySQLdb/setup.py b/MySQLdb/setup.py index 77d3ebd..f5ffa47 100644 --- a/MySQLdb/setup.py +++ b/MySQLdb/setup.py @@ -51,6 +51,10 @@ extra_link_args = [] if sys.platform == "netbsd1": include_dirs = ['/usr/pkg/include/mysql'] library_dirs = ['/usr/pkg/lib/mysql'] +elif sys.platform in ("freebsd4", "openbsd3"): + LOCALBASE = os.environ.get('LOCALBASE', '/usr/local') + include_dirs = ['%s/include/mysql' % LOCALBASE] + library_dirs = ['%s/lib/mysql' % LOCALBASE] elif sys.platform == "sunos5": # Solaris 2.8 + gcc runtime_library_dirs = ['/usr/local/lib:/usr/openwin/lib:/usr/dt/lib'] extra_compile_args = ["-fPIC"] |