diff options
author | Ingo Klöcker <dev@ingo-kloecker.de> | 2022-08-15 10:49:49 +0200 |
---|---|---|
committer | Ingo Klöcker <dev@ingo-kloecker.de> | 2022-08-17 09:23:59 +0200 |
commit | fcb19dbfd49338e5c282e2853d71d66a0594d3c1 (patch) | |
tree | 70932361a5c36ceaee74098005f8fdc5149a7911 | |
parent | 0b47de9c719b0ed0da0791f0525de073737bde5a (diff) | |
download | libgpg-error-fcb19dbfd49338e5c282e2853d71d66a0594d3c1.tar.gz |
build: Omit -L<libdir> for standard paths on some 64-bit systems
* configure.ac (GPG_ERROR_CONFIG_LIBS): Handle the case $libdir =
'${exec_prefix}/lib64'.
--
This ensures that on systems using /usr/lib64 the Libs entry of
gpg-error.pc doesn't get prefixed with -L/usr/lib64 which helps prevent
library search path problems when linking something that depends on
libgpg-error.
GnuPG-bug-id: 6136
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index af57678..8de8cf8 100644 --- a/configure.ac +++ b/configure.ac @@ -508,7 +508,7 @@ GNUPG_CHECK_READLINE estream_INIT # -# Substitution used for gpg-error-config +# Substitution used for gpg-error-config and gpg-error.pc # GPG_ERROR_CONFIG_LIBS="$config_libs" if test "x$LIBTHREAD" != x; then @@ -548,7 +548,7 @@ case "$includedir" in esac case "$libdir" in /usr/lib|/usr/lib64|/lib|/lib64) ;; - '${exec_prefix}/lib') + '${exec_prefix}/lib'|'${exec_prefix}/lib64') if test "$exec_prefix" = "NONE"; then if test "$prefix" != / -a "$prefix" != /usr; then GPG_ERROR_CONFIG_LIBS="-L\${libdir} $GPG_ERROR_CONFIG_LIBS" |