Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_accounting
> mod_accounting-0.5_dynamic_makefile.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mod_accounting-0.5_dynamic_makefile.patch of Package apache2-mod_accounting (Revision 4)
Currently displaying revision
4
,
show latest
--- Makefile.orig 2008-12-01 10:57:44.000000000 +0100 +++ Makefile 2008-12-01 22:58:36.000000000 +0100 @@ -10,15 +10,20 @@ # here's what you may need to change DEF=-DNEED_POSTGRES -DNEED_MYSQL -INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/ -LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient - +#INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/ +#LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient +MYINC=`mysql_config --include` +MYLIB=`mysql_config --libs` +PGINC=-I`pg_config --includedir` +PGLIB=-L`pg_config --pkglibdir` `pg_config --libs` +INC=${MYINC} ${PGINC} +LIB=${MYLIB} ${PGLIB} # the default target all: mod_accounting.so # compile the DSO file mod_accounting.so: mod_accounting.c postgres.c mysql.c - $(APXS) -Wc,-Wall -Wc,-Werror -Wc,-g -c $(DEF) $(INC) $(LIB) mod_accounting.c postgres.c mysql.c + $(APXS) -Wc,-Wall -Wc,-g -c $(DEF) $(INC) $(LIB) mod_accounting.c postgres.c mysql.c # install the DSO file into the Apache installation # and activate it in the Apache configuration