summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinoguchi <>2021-06-08 11:19:39 +0000
committerinoguchi <>2021-06-08 11:19:39 +0000
commit0c6fae4cb3a37b83ebcf9671996b0df89462ea0f (patch)
treee55b19f5976322f99953948f7703e824b2cccbe8
parent336e05bda5aedf470537710406eb32f778f8a6e4 (diff)
downloadopenbsd-0c6fae4cb3a37b83ebcf9671996b0df89462ea0f.tar.gz
openbsd-0c6fae4cb3a37b83ebcf9671996b0df89462ea0f.tar.bz2
openbsd-0c6fae4cb3a37b83ebcf9671996b0df89462ea0f.zip
Fix pkg-config .pc files with LibreSSL
In libssl.pc, Libs: should not have '-lcrypto', and Requires.private: should have it as 'libcrypto'. openssl.pc does not need Libs: and Cflags:, but should have Requires:. OK millert@
-rw-r--r--src/lib/libcrypto/generate_pkgconfig.sh4
-rw-r--r--src/lib/libssl/generate_pkgconfig.sh12
2 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/libcrypto/generate_pkgconfig.sh b/src/lib/libcrypto/generate_pkgconfig.sh
index 12dff506ff..e03f849e76 100644
--- a/src/lib/libcrypto/generate_pkgconfig.sh
+++ b/src/lib/libcrypto/generate_pkgconfig.sh
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $OpenBSD: generate_pkgconfig.sh,v 1.2 2016/09/03 12:42:46 beck Exp $ 3# $OpenBSD: generate_pkgconfig.sh,v 1.3 2021/06/08 11:19:39 inoguchi Exp $
4# 4#
5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org> 5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org>
6# 6#
@@ -69,7 +69,7 @@ includedir=\${prefix}/include
69Name: OpenSSL-libcrypto 69Name: OpenSSL-libcrypto
70Description: OpenSSL cryptography library 70Description: OpenSSL cryptography library
71Version: ${lib_version} 71Version: ${lib_version}
72Requires:
73Libs: -L\${libdir} -lcrypto 72Libs: -L\${libdir} -lcrypto
73Libs.private:
74Cflags: -I\${includedir} 74Cflags: -I\${includedir}
75__EOF__ 75__EOF__
diff --git a/src/lib/libssl/generate_pkgconfig.sh b/src/lib/libssl/generate_pkgconfig.sh
index de14a121fc..4bc22c3267 100644
--- a/src/lib/libssl/generate_pkgconfig.sh
+++ b/src/lib/libssl/generate_pkgconfig.sh
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $OpenBSD: generate_pkgconfig.sh,v 1.9 2016/09/03 12:42:42 beck Exp $ 3# $OpenBSD: generate_pkgconfig.sh,v 1.10 2021/06/08 11:19:39 inoguchi Exp $
4# 4#
5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org> 5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org>
6# 6#
@@ -65,11 +65,11 @@ exec_prefix=\${prefix}
65libdir=\${exec_prefix}/lib 65libdir=\${exec_prefix}/lib
66includedir=\${prefix}/include 66includedir=\${prefix}/include
67 67
68Name: OpenSSL 68Name: OpenSSL-libssl
69Description: Secure Sockets Layer and cryptography libraries 69Description: Secure Sockets Layer and cryptography libraries
70Version: ${lib_version} 70Version: ${lib_version}
71Requires: 71Requires.private: libcrypto
72Libs: -L\${libdir} -lssl -lcrypto 72Libs: -L\${libdir} -lssl
73Cflags: -I\${includedir} 73Cflags: -I\${includedir}
74__EOF__ 74__EOF__
75 75
@@ -84,7 +84,5 @@ includedir=\${prefix}/include
84Name: OpenSSL 84Name: OpenSSL
85Description: Secure Sockets Layer and cryptography libraries and tools 85Description: Secure Sockets Layer and cryptography libraries and tools
86Version: ${lib_version} 86Version: ${lib_version}
87Requires: 87Requires: libssl libcrypto
88Libs: -L\${libdir} -lssl -lcrypto
89Cflags: -I\${includedir}
90__EOF__ 88__EOF__