diff options
-rw-r--r-- | libmariadb/my_config.h | 2 | ||||
-rw-r--r-- | mysqlc/Library_mysqlc.mk | 6 | ||||
-rw-r--r-- | mysqlcppconn/Library_mysqlcppconn.mk | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/libmariadb/my_config.h b/libmariadb/my_config.h index c026a2790193..ceed617e8b60 100644 --- a/libmariadb/my_config.h +++ b/libmariadb/my_config.h @@ -160,3 +160,5 @@ #define RETSIGTYPE void #define RETQSORTTYPE void + +#define THREAD 1 diff --git a/mysqlc/Library_mysqlc.mk b/mysqlc/Library_mysqlc.mk index d67d314eb5ac..fd09ba170ff0 100644 --- a/mysqlc/Library_mysqlc.mk +++ b/mysqlc/Library_mysqlc.mk @@ -36,6 +36,12 @@ $(eval $(call gb_Library_use_libraries,mysqlc,\ cppuhelper \ )) +ifeq ($(OS),LINUX) +$(eval $(call gb_Library_add_libs,mysqlc,\ + -lpthread \ +)) +endif + $(eval $(call gb_Library_add_defs,mysqlc,\ -DCPPDBC_EXPORTS \ -DCPPCONN_LIB_BUILD \ diff --git a/mysqlcppconn/Library_mysqlcppconn.mk b/mysqlcppconn/Library_mysqlcppconn.mk index 6f52a26b7209..611895bf71d3 100644 --- a/mysqlcppconn/Library_mysqlcppconn.mk +++ b/mysqlcppconn/Library_mysqlcppconn.mk @@ -53,6 +53,12 @@ $(eval $(call gb_Library_set_include,mysqlcppconn,\ $(MARIADB_CFLAGS) \ )) +ifeq ($(OS),LINUX) +$(eval $(call gb_Library_add_libs,mysqlcppconn,\ + -lpthread \ +)) +endif + $(eval $(call gb_Library_add_generated_exception_objects,mysqlcppconn,\ UnpackedTarball/mysqlcppconn/driver/mysql_art_resultset \ UnpackedTarball/mysqlcppconn/driver/mysql_art_rset_metadata \ |