Related: tdf#170410 remove redundant CRYPT_LIBS

commit a726c634ac
Date:   Mon Jan 12 23:02:34 2026 +0100

    Fix "unable to find library -lcrypt" with recent glibc

added a use of CRYPT_LIBS, but that doesn't appear in config_host.mk.in

so effectively that universally removed -lcrypt from the mysqlc link line

Change-Id: I58f49cddeec2b2d3445e569610e4848d310c84d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198886
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2026-02-07 20:15:58 +01:00
parent 64510d3c8e
commit a44fc53d05
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -10891,11 +10891,6 @@ if test "$ENABLE_MARIADBC" = "TRUE"; then
BUILD_TYPE="$BUILD_TYPE MARIADB_CONNECTOR_C"
fi
save_LIBS=$LIBS
AC_SEARCH_LIBS([crypt], [crypt xcrypt], [CRYPT_LIBS="$LIBS"], [CRYPT_LIBS=""])
LIBS=$save_LIBS
AC_SUBST([CRYPT_LIBS])
AC_SUBST(SYSTEM_MARIADB_CONNECTOR_C)
AC_SUBST(MARIADB_CFLAGS)
AC_SUBST(MARIADB_LIBS)
+1 -1
View File
@@ -25,7 +25,7 @@ $(eval $(call gb_Library_set_include,mysqlc,\
$(eval $(call gb_Library_add_libs,mysqlc,\
$(if $(WITH_GSSAPI),$(GSSAPI_LIBS)) \
$(if $(filter-out WNT,$(OS)),$(if $(filter HAIKU MACOSX SOLARIS,$(OS)),\
-lz -lm,-rdynamic -lz $(CRYPT_LIBS) -lm)) \
-lz -lm,-rdynamic -lz -lm)) \
$(if $(filter LINUX,$(OS)),-ldl,) \
))