summaryrefslogtreecommitdiff
path: root/dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch
diff options
context:
space:
mode:
authorTomáš Mózes <hydrapolic@gmail.com>2023-04-26 13:15:09 +0000
committerSam James <sam@gentoo.org>2023-05-01 11:01:53 +0100
commitb3c42b37e02e311e0750e3ae6071029f3a1f2626 (patch)
tree4818fc10e2d195c9511179c482f71dc04976a962 /dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch
parent9fafd721e85a9c8cd6c602eba7b5d26b1bb6f9ed (diff)
downloadgentoo-b3c42b37e02e311e0750e3ae6071029f3a1f2626.tar.gz
gentoo-b3c42b37e02e311e0750e3ae6071029f3a1f2626.tar.bz2
gentoo-b3c42b37e02e311e0750e3ae6071029f3a1f2626.zip
dev-db/mariadb-connector-c: add 3.3.4
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/30767 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch')
-rw-r--r--dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch b/dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch
new file mode 100644
index 000000000000..a76af28aabd4
--- /dev/null
+++ b/dev-db/mariadb-connector-c/files/mariadb-connector-c-3.3.4-fix-building-without-gssapi.patch
@@ -0,0 +1,15 @@
+# https://jira.mariadb.org/browse/CONC-637
+# https://github.com/mariadb-corporation/mariadb-connector-c/commit/4e2408c1cc298ada91b30683501c0c94a6621562
+diff --git a/plugins/auth/CMakeLists.txt b/plugins/auth/CMakeLists.txt
+index ed9be6f3..da0b58e4 100644
+--- a/plugins/auth/CMakeLists.txt
++++ b/plugins/auth/CMakeLists.txt
+@@ -120,7 +120,7 @@ IF(GSSAPI_SOURCES)
+ IF(CMAKE_C_COMPILER_ID MATCHES "Clang")
+ SET_SOURCE_FILES_PROPERTIES(${GSSAPI_SOURCES} PROPERTY COMPILE_FLAGS "-Wno-deprecated-declarations")
+ ENDIF()
+- IF(have__Wl___as_needed)
++ IF(have__Wl___as_needed AND TARGET auth_gssapi_client)
+ SET_TARGET_PROPERTIES(auth_gssapi_client PROPERTIES LINK_FLAGS "-Wl,--as-needed")
+ ENDIF()
+ ENDIF()