aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac.tpl19
-rw-r--r--crypto/Makefile.am.tpl1
-rw-r--r--libcrypto.pc.in15
-rw-r--r--libssl.pc.in16
-rw-r--r--openssl.pc.in11
-rwxr-xr-xupdate.sh3
8 files changed, 66 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index e99ad46..e413341 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,6 +34,8 @@ Makefile.in
34*.lo 34*.lo
35*.la 35*.la
36 36
37*.pc
38
37# tests 39# tests
38test-driver 40test-driver
39*.log 41*.log
diff --git a/Makefile.am b/Makefile.am
index bec672c..fbb9315 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,2 +1,5 @@
1SUBDIRS = crypto ssl include apps tests man 1SUBDIRS = crypto ssl include apps tests man
2ACLOCAL_AMFLAGS = -I m4 2ACLOCAL_AMFLAGS = -I m4
3
4pkgconfigdir = $(libdir)/pkgconfig
5pkgconfig_DATA = libcrypto.pc libssl.pc openssl.pc
diff --git a/configure.ac.tpl b/configure.ac.tpl
index c565485..ab06402 100644
--- a/configure.ac.tpl
+++ b/configure.ac.tpl
@@ -97,5 +97,20 @@ AC_CHECK_HEADER(sys/sysctl.h, AC_DEFINE(HAVE_SYS_SYSCTL_H))
97 97
98LT_INIT 98LT_INIT
99 99
100AC_OUTPUT(Makefile include/Makefile include/openssl/Makefile ssl/Makefile 100AC_CONFIG_FILES([
101 crypto/Makefile tests/Makefile apps/Makefile man/Makefile) 101 Makefile
102 include/Makefile
103 include/openssl/Makefile
104 ssl/Makefile
105 crypto/Makefile
106 tests/Makefile
107 apps/Makefile
108 man/Makefile
109 libcrypto.pc
110 libssl.pc
111 openssl.pc
112])
113
114AC_OUTPUT
115
116DISTCLEANFILES += *.pc
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index 4830da4..20c3495 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -19,6 +19,7 @@ libcompatnoopt_la_SOURCES = compat/explicit_bzero.c
19# other compatibility functions 19# other compatibility functions
20libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) 20libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
21libcompat_la_SOURCES = 21libcompat_la_SOURCES =
22libcompat_la_LIBADD = $(PLATFORM_LDADD)
22 23
23if NO_STRLCAT 24if NO_STRLCAT
24libcompat_la_SOURCES += compat/strlcat.c 25libcompat_la_SOURCES += compat/strlcat.c
diff --git a/libcrypto.pc.in b/libcrypto.pc.in
new file mode 100644
index 0000000..4e886b9
--- /dev/null
+++ b/libcrypto.pc.in
@@ -0,0 +1,15 @@
1#libcrypto pkg-config source file
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5libdir=@libdir@
6includedir=@includedir@
7
8Name: LibreSSL-libssl
9Description: Secure Sockets Layer and cryptography libraries
10Version: @VERSION@
11Requires:
12Conflicts:
13Libs: -L${libdir} -lcrypto
14Libs.private: @LIBS@
15Cflags: -I${includedir}
diff --git a/libssl.pc.in b/libssl.pc.in
new file mode 100644
index 0000000..43b8bb7
--- /dev/null
+++ b/libssl.pc.in
@@ -0,0 +1,16 @@
1#libssl pkg-config source file
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5libdir=@libdir@
6includedir=@includedir@
7
8Name: LibreSSL-libssl
9Description: Secure Sockets Layer and cryptography libraries
10Version: @VERSION@
11Requires:
12Requires.private: libcrypto
13Conflicts:
14Libs: -L${libdir} -lssl
15Libs.private: @LIBS@ -lcrypto
16Cflags: -I${includedir}
diff --git a/openssl.pc.in b/openssl.pc.in
new file mode 100644
index 0000000..b4acfa5
--- /dev/null
+++ b/openssl.pc.in
@@ -0,0 +1,11 @@
1#openssl pkg-config source file
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5libdir=@libdir@
6includedir=@includedir@
7
8Name: LibreSSL
9Description: Secure Sockets Layer and cryptography libraries and tools
10Version: @VERSION@
11Requires: libssl libcrypto
diff --git a/update.sh b/update.sh
index f2ae0f7..ba367ae 100755
--- a/update.sh
+++ b/update.sh
@@ -306,8 +306,7 @@ test_excludes=(biotest aeadtest evptest pq_test ssltest arc4randomforktest)
306 fi 306 fi
307 echo "check_PROGRAMS += $TEST" >> Makefile.am 307 echo "check_PROGRAMS += $TEST" >> Makefile.am
308 echo "${TEST}_SOURCES = $i" >> Makefile.am 308 echo "${TEST}_SOURCES = $i" >> Makefile.am
309 echo "${TEST}_LDADD = \$(PLATFORM_LDADD)" >> Makefile.am 309 echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am
310 echo "${TEST}_LDADD += \$(top_builddir)/ssl/libssl.la" >> Makefile.am
311 echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am 310 echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am
312 done 311 done
313) 312)