]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3731] Revert mysql fallback to cflags
authorAndrei Pavel <andrei@isc.org>
Fri, 14 Mar 2025 12:17:17 +0000 (14:17 +0200)
committerAndrei Pavel <andrei@isc.org>
Mon, 17 Mar 2025 10:16:24 +0000 (12:16 +0200)
Since mariadb_config does not have --cxxflags.

subprojects/mysql/meson.build

index 705d1014e042af91d461a789f8e9a484575d2bb4..e8b051811472890fe62b7093cf266d7216875149 100644 (file)
@@ -8,12 +8,12 @@ foreach mysql_config_file : ['mariadb_config', 'mysql_config']
     if not mysql_config.found()
         continue
     endif
-    cxxflags = run_command([mysql_config, '--cxxflags'], check: false)
+    cflags = run_command([mysql_config, '--cflags'], check: false)
     libs = run_command([mysql_config, '--libs'], check: false)
     version = run_command([mysql_config, '--version'], check: false)
 
-    if cxxflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0
-        mysql_compile_args = cxxflags.stdout().split()
+    if cflags.returncode() == 0 and libs.returncode() == 0 and version.returncode() == 0
+        mysql_compile_args = cflags.stdout().split()
         mysql_link_args = libs.stdout().split()
         mysql_version = version.stdout().strip()
         mysql = declare_dependency(