aboutsummaryrefslogtreecommitdiffstats
path: root/main/mariadb-connector-c/cmake.patch
blob: 8e47ac31026ceeacfaac0ab9aea83c71ab98b578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Summary: Fix include and libs path in mariadb_config
----

--- a/mariadb_config/mariadb_config.c.in
+++ b/mariadb_config/mariadb_config.c.in
@@ -5,8 +5,8 @@

 static char *mariadb_progname;

-#define INCLUDE "-I@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@ -I@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@/mysql"
-#define LIBS    "-L@CMAKE_INSTALL_PREFIX@/@INSTALL_LIBDIR@/ -lmariadb"
+#define INCLUDE "-I@INSTALL_INCLUDEDIR@ -I@INSTALL_INCLUDEDIR@/mysql"
+#define LIBS    "-L@INSTALL_LIBDIR@/ -lmariadb"
 #define LIBS_SYS "@extra_dynamic_LDFLAGS@"
 #define CFLAGS  INCLUDE
 #define VERSION "@MARIADB_CLIENT_VERSION@"