Index: CMakeLists.txt
--- CMakeLists.txt.orig	2025-05-22 09:28:45.000000000 +0200
+++ CMakeLists.txt	2025-07-27 18:53:01.197782000 +0200
@@ -314,8 +314,6 @@
   ADD_DEFINITIONS(-DWITHOUT_PACKED_SORT_KEYS)
 ENDIF()
 
-MY_CHECK_AND_SET_COMPILER_FLAG(-ggdb3 DEBUG)
-
 SET(ENABLED_LOCAL_INFILE "AUTO" CACHE STRING "If we should should enable LOAD DATA LOCAL by default (OFF/ON/AUTO)")
 IF (ENABLED_LOCAL_INFILE MATCHES "^(0|FALSE)$")
   SET(ENABLED_LOCAL_INFILE OFF)
@@ -489,21 +487,15 @@
 ADD_SUBDIRECTORY(sql/share)
 
 IF(NOT WITHOUT_SERVER)
-  ADD_SUBDIRECTORY(tests)
   ADD_SUBDIRECTORY(sql)
   OPTION (WITH_EMBEDDED_SERVER "Compile MariaDB with embedded server" OFF)
   IF(WITH_EMBEDDED_SERVER)
     ADD_SUBDIRECTORY(libmysqld)
-    ADD_SUBDIRECTORY(libmysqld/examples)
-    ADD_SUBDIRECTORY(unittest/embedded)
   ENDIF(WITH_EMBEDDED_SERVER)
   IF(NOT WIN32)
     ADD_FEATURE_INFO(EMBEDDED_SERVER WITH_EMBEDDED_SERVER "Embedded MariaDB Server Library")
   ENDIF()
 
-  ADD_SUBDIRECTORY(mysql-test)
-  ADD_SUBDIRECTORY(mysql-test/lib/My/SafeProcess)
-  ADD_SUBDIRECTORY(sql-bench)
   IF(WIN32)
     ADD_SUBDIRECTORY(win/upgrade_wizard)
     ADD_SUBDIRECTORY(win/packaging)
@@ -628,7 +620,6 @@
    mariadb-admin
    mariadb-binlog
    mariadb-check
-   mariadb-client-test
    mariadb-conv
    mariadb-dump
    mariadb-import
@@ -640,7 +631,6 @@
    mariadb-upgrade
    mariadbd
    my_print_defaults
-   my_safe_process
    myisam_ftdump
    myisamchk
    myisamlog
Index: include/CMakeLists.txt
--- include/CMakeLists.txt.orig	2025-05-22 09:28:45.000000000 +0200
+++ include/CMakeLists.txt	2025-07-27 17:32:41.007671000 +0200
@@ -22,6 +22,7 @@
 )
 
 SET(HEADERS 
+  hash.h
   mysql.h 
   mysql_com.h
   mysql_com_server.h
Index: include/my_compare.h
--- include/my_compare.h.orig	2025-05-22 09:28:45.000000000 +0200
+++ include/my_compare.h	2025-07-27 17:32:41.007874000 +0200
@@ -40,7 +40,7 @@
   But beware the dependency of MI_MAX_POSSIBLE_KEY_BUFF and HA_MAX_KEY_LENGTH.
 */
 
-#define HA_MAX_KEY_LENGTH           1000        /* Max length in bytes */
+#define HA_MAX_KEY_LENGTH           4000        /* Max length in bytes */
 #define HA_MAX_KEY_SEG              32          /* Max segments for key */
 
 #define HA_MAX_POSSIBLE_KEY_BUFF    (HA_MAX_KEY_LENGTH + 24+ 6+6)
Index: include/myisam.h
--- include/myisam.h.orig	2025-05-22 09:28:45.000000000 +0200
+++ include/myisam.h	2025-07-27 17:32:41.008065000 +0200
@@ -45,7 +45,7 @@
   The following defines can be increased if necessary.
   But beware the dependency of MI_MAX_POSSIBLE_KEY_BUFF and MI_MAX_KEY_LENGTH.
 */
-#define MI_MAX_KEY_LENGTH           1000            /* Max length in bytes */
+#define MI_MAX_KEY_LENGTH           4000            /* Max length in bytes */
 #define MI_MAX_KEY_SEG              16              /* Max segments for key */
 
 #define MI_NAME_IEXT	".MYI"
Index: libmariadb/mariadb_config/libmariadb.pc.in
--- libmariadb/mariadb_config/libmariadb.pc.in.orig	2025-05-22 09:28:51.000000000 +0200
+++ libmariadb/mariadb_config/libmariadb.pc.in	2025-07-27 17:32:41.008232000 +0200
@@ -13,8 +13,7 @@
 Name: libmariadb
 Version: @CPACK_PACKAGE_VERSION@
 Description: MariaDB Connector/C dynamic library
-Cflags: -I${includedir}
-Libs: -L${libdir} -lmariadb
+Cflags: -pthreads -I${includedir}
+Libs: -pthreads -L${libdir} -lmariadb -lstdc++
 Libs.private: @extra_dynamic_LDFLAGS@
 
-
Index: mysys/CMakeLists.txt
--- mysys/CMakeLists.txt.orig	2025-05-22 09:28:48.000000000 +0200
+++ mysys/CMakeLists.txt	2025-07-27 17:32:41.008429000 +0200
@@ -181,14 +181,3 @@
   TARGET_LINK_LIBRARIES(mysys pthread)
 ENDIF()
 
-ADD_EXECUTABLE(thr_lock thr_lock.c)
-TARGET_LINK_LIBRARIES(thr_lock mysys)
-SET_TARGET_PROPERTIES(thr_lock PROPERTIES COMPILE_FLAGS "-DMAIN")
-
-ADD_EXECUTABLE(thr_timer thr_timer.c)
-TARGET_LINK_LIBRARIES(thr_timer mysys)
-SET_TARGET_PROPERTIES(thr_timer PROPERTIES COMPILE_FLAGS "-DMAIN")
-
-ADD_EXECUTABLE(test_hash hash.c)
-TARGET_LINK_LIBRARIES(test_hash mysys)
-SET_TARGET_PROPERTIES(test_hash PROPERTIES COMPILE_FLAGS "-DMAIN")
Index: sql/share/CMakeLists.txt
--- sql/share/CMakeLists.txt.orig	2025-05-22 09:28:48.000000000 +0200
+++ sql/share/CMakeLists.txt	2025-07-27 17:32:41.008607000 +0200
@@ -15,34 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1335 USA
 
 SET (dirs 
-bulgarian
-chinese
-czech
-danish
-dutch
 english
-estonian
-french
-german
-georgian
-greek
-hindi
-hungarian
-italian
-japanese
-korean
-norwegian-ny
-norwegian
-polish
-portuguese
-romanian
-russian
-serbian
-slovak
-spanish
-swahili
-swedish
-ukrainian
 )
 
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/charsets DESTINATION ${INSTALL_MYSQLSHAREDIR}
Index: support-files/mariadb.pc.in
--- support-files/mariadb.pc.in.orig	2025-05-22 09:28:50.000000000 +0200
+++ support-files/mariadb.pc.in	2025-07-27 17:32:41.008761000 +0200
@@ -20,5 +20,5 @@
 Description: @CPACK_PACKAGE_DESCRIPTION_SUMMARY@
 URL: @CPACK_PACKAGE_URL@
 Version: @VERSION@
-Libs: -L${libdir} @LIBS_FOR_CLIENTS@
-Cflags: -I${includedir} @CFLAGS_FOR_CLIENTS@
+Libs: -pthread -L${libdir} @LIBS_FOR_CLIENTS@ -lstdc++
+Cflags: -pthread -I${includedir} @CFLAGS_FOR_CLIENTS@
