[collectd] Collectd rpm spec file for collectd 4.0.6 on Fedora 7

Kjell Randa kranda at broadpark.no
Fri Aug 10 15:10:05 CEST 2007

Florian Forster wrote:
> Hi Kjell,
> On Wed, Aug 08, 2007 at 10:14:18PM +0200, Sebastian Harl wrote:
>> The with-libmysql value is supposed to be a prefix, that's why adding
>> "/lib" and "/include" to it makes sense to look for libraries and
>> header files. If you can think of a more flexible way to check for it,
>> please let us know :-)
> that more flexible solution would be to check for mysql_config and let
> it define the needed `CFLAGS' and `LDFLAGS'. Could you check if you have
> the `mysql_config' application and tell me what gets printed ot standard
> output when run with the following options:
>   mysql_config --cflags
>   mysql_config --libs
>   mysql_config --libs_r
> Regards,
> -octo

[root at nazgul ~]# mysql_config --cflags
-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic 
-fno-strict-aliasing -fwrapv

[root at nazgul ~]# mysql_config --libs
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 
-lssl -lcrypto

mysql_config --libs_r
-L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm 
-lpthread -L/usr/lib64 -lssl -lcrypto

Kjell Randa

More information about the collectd mailing list