Thread: makefile issue
View Single Post
  #1  
Old 08-31-2007, 12:39 PM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default makefile issue

the makefile in ./zone has hard coded references to mysql:

Code:
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:

Code:
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
Reply With Quote