EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   makefile issue (https://www.eqemulator.org/forums/showthread.php?t=23562)

sfisque 08-31-2007 12:39 PM

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

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.


All times are GMT -4. The time now is 02:01 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.