diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/gpg-error.pc.in | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 7ca8be0..a92143c 100644 --- a/configure.ac +++ b/configure.ac @@ -458,6 +458,7 @@ AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes") # Windows has always thread support; thus we don't bother to test for # it as it may lead to false results when cross building. if test "$have_w32_system" = yes; then + GPG_ERROR_CONFIG_LIBS_PRIVATE=-lws2_32 AC_DEFINE([USE_WINDOWS_THREADS], [1]) LIBTHREAD= LTLIBTHREAD= @@ -469,6 +470,7 @@ if test "$have_w32_system" = yes; then AC_SUBST([LIBMULTITHREAD]) AC_SUBST([LTLIBMULTITHREAD]) else + GPG_ERROR_CONFIG_LIBS_PRIVATE="" gl_LOCK if test "$gl_threads_api" = posix; then AC_CHECK_SIZEOF(pthread_mutex_t,,[AC_INCLUDES_DEFAULT @@ -574,6 +576,7 @@ AC_SUBST(GPG_ERROR_CONFIG_LIBS) AC_SUBST(GPG_ERROR_CONFIG_CFLAGS) AC_SUBST(GPG_ERROR_CONFIG_MT_LIBS) AC_SUBST(GPG_ERROR_CONFIG_MT_CFLAGS) +AC_SUBST(GPG_ERROR_CONFIG_LIBS_PRIVATE) AC_SUBST(GPG_ERROR_CONFIG_HOST) diff --git a/src/Makefile.am b/src/Makefile.am index 9303954..e9c057f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -156,7 +156,6 @@ uninstall-def-file: libgpg_error_la_DEPENDENCIES = $(gpg_error_res) gpg-error.def intllibs = -socklibs = -lws2_32 # # }}} End Windows part @@ -174,13 +173,14 @@ install-def-file: uninstall-def-file: intllibs = @LTLIBINTL@ -socklibs = endif # # }}} End Unix part # +socklibs = @GPG_ERROR_CONFIG_LIBS_PRIVATE@ + if HAVE_LD_VERSION_SCRIPT libgpg_error_vers_opt = -Wl,--version-script=$(srcdir)/gpg-error.vers else diff --git a/src/gpg-error.pc.in b/src/gpg-error.pc.in index e6ab104..970bb6c 100644 --- a/src/gpg-error.pc.in +++ b/src/gpg-error.pc.in @@ -11,4 +11,5 @@ Description: GPG Runtime Version: @PACKAGE_VERSION@ Cflags: @GPG_ERROR_CONFIG_CFLAGS@ Libs: @GPG_ERROR_CONFIG_LIBS@ +Libs.private: @GPG_ERROR_CONFIG_LIBS_PRIVATE@ URL: https://www.gnupg.org/software/libgpg-error/index.html |