sfisque
08-31-2007, 12:39 PM
the makefile in ./zone has hard coded references to mysql:
MYSQL_FLAGS=-I/usr/include/mysql
MYSQL_LIB=-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
these should be replaced with:
MYSQL_FLAGS=$(shell mysql_config --cflags)
MYSQL_LIB=$(shell mysql_config --libs)
which alleviates issues that would arise if someone installed mysql in a location other than /usr (e.g. /usr/local or /opt ).
== sfisque
MYSQL_FLAGS=-I/usr/include/mysql
MYSQL_LIB=-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
these should be replaced with:
MYSQL_FLAGS=$(shell mysql_config --cflags)
MYSQL_LIB=$(shell mysql_config --libs)
which alleviates issues that would arise if someone installed mysql in a location other than /usr (e.g. /usr/local or /opt ).
== sfisque