Menu

#240 Static build fails on FreeBSD

MySQLdb-1.2
open
MySQLdb (285)
5
2012-09-19
2007-11-19
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


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.