#240 Static build fails on FreeBSD

MySQLdb-1.2
open
Andy Dustman
MySQLdb (285)
5
2012-09-19
2007-11-19
Gilad Raphaelli
No

In setup_posix.py, the first entry in library_dirs is used to find libmysqlcilent.a:

if static:
extra_objects.append(os.path.join(
library_dirs[0],'lib%s.a' % client))

but mysql_config --libs returns:

-L/usr/local/lib -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm

causing non-existent /usr/local/lib/libmysqlcilent.a to be picked up instead of /usr/local/lib/mysql/libmysqlclient.a

Discussion