Log in

View Full Version : makefile issue


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

gernblan
09-03-2007, 10:01 AM
This is definitely a better way to go.

I concur.

Thanks!

gernblan
09-07-2007, 08:00 PM
Also change the makefile in world, as well.