[CONC-170] mariadb_config --libs --libs_r output in wrong format Created: 2016-03-24  Updated: 2016-03-25  Resolved: 2016-03-24

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.1

Type: Bug Priority: Major
Reporter: Jarosław Siebert Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

$ mariadb_config --cflags --libs --libs_r --version
-I/usr/include/mariadb -I/usr/include/mariadb/mysql -Wunused -Wno-uninitialized
-L/usr/lib/mariadb -lmariadb-lpthread -ldl -lm -lssl -lcrypto
-L/usr/lib/mariadb -lmariadb-lpthread -ldl -lm -lssl -lcrypto
10.1.7

There is one space missing in "-lmariadb-lpthread".
It is impossible to use `mariadb_config` with gcc.



 Comments   
Comment by Georg Richter [ 2016-03-24 ]

Thanks for your bug report.
Fixed in revision 2004962331c0b57eb422f78218e9913aa26aede3

Comment by Jarosław Siebert [ 2016-03-25 ]

Thanks for fix.
I would like to ask about --libs and --libs_r.
Why there is -lmariadb ?
In mysql_config there is -lmysqclient
Why mariadb_config doesn't set -lmariadbclient ?
What is proper way to setup compile flags for program that use libmariadbclient (LGPL) ?

Generated at Thu Feb 08 03:03:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.