aboutsummaryrefslogtreecommitdiff
path: root/ports/nettle/fix-InstallLibPath.patch
diff options
context:
space:
mode:
authorLily <47812810+LilyWangL@users.noreply.github.com>2020-09-28 09:27:49 +0800
committerGitHub <noreply@github.com>2020-09-27 18:27:49 -0700
commitdf37e12e34a945a26d65789055eff774a70075ff (patch)
treef36549bdd541ca66f7ced3d84ff49e6883e6f9d2 /ports/nettle/fix-InstallLibPath.patch
parent3856a6bda776c454c02760c7d4df4b355a3cc7eb (diff)
downloadvcpkg-df37e12e34a945a26d65789055eff774a70075ff.tar.gz
vcpkg-df37e12e34a945a26d65789055eff774a70075ff.zip
[nettle] Fix build error on Linux (#13523)
* [nettle] Fix build error on Linux * [nettle] Fix build error on Linux * [nettle] Fix build error on Linux
Diffstat (limited to 'ports/nettle/fix-InstallLibPath.patch')
-rw-r--r--ports/nettle/fix-InstallLibPath.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/ports/nettle/fix-InstallLibPath.patch b/ports/nettle/fix-InstallLibPath.patch
new file mode 100644
index 000000000..363cda9ba
--- /dev/null
+++ b/ports/nettle/fix-InstallLibPath.patch
@@ -0,0 +1,36 @@
+diff --git a/configure.ac b/configure.ac
+index 3547cae..e13a5bf 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -366,25 +366,25 @@ if test "x$ABI" != xstandard ; then
+ else
+ # The dash builtin pwd tries to be "helpful" and remember
+ # symlink names. Use -P option, and hope it's portable enough.
+- test -d /usr/lib${ABI} \
+- && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
+- && libdir='${exec_prefix}/'"lib${ABI}"
++ test -d /usr/lib \
++ && (cd /usr/lib && pwd -P | grep >/dev/null "/lib"'$') \
++ && libdir='${exec_prefix}/'"lib"
+ fi
+ ;;
+ # On freebsd, it seems 32-bit libraries are in lib32,
+ # and 64-bit in lib. Don't know about "kfreebsd", does
+ # it follow the Linux fhs conventions?
+ *:freebsd*:32)
+- libdir='${exec_prefix}/lib32'
++ libdir='${exec_prefix}/lib'
+ ;;
+ *:freebsd*:64)
+ libdir='${exec_prefix}/lib'
+ ;;
+ *:irix*:32)
+- libdir='${exec_prefix}/lib32'
++ libdir='${exec_prefix}/lib'
+ ;;
+ *:irix*:64)
+- libdir='${exec_prefix}/lib64'
++ libdir='${exec_prefix}/lib'
+ ;;
+ *)
+ AC_MSG_WARN([Don't know where to install $ABI-bit libraries on this system.]); dnl '