summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornatano <>2016-09-14 06:26:03 +0000
committernatano <>2016-09-14 06:26:03 +0000
commitd38b15019a94267fb66852d97b372b090de32f83 (patch)
tree38b82c0c0f1f714d4304104f6700ad7c8f9f1551 /src
parent089b3db121be3c97265f50efbba5fafd3fa25482 (diff)
downloadopenbsd-d38b15019a94267fb66852d97b372b090de32f83.tar.gz
openbsd-d38b15019a94267fb66852d97b372b090de32f83.tar.bz2
openbsd-d38b15019a94267fb66852d97b372b090de32f83.zip
Generate pkg-config files at build time like everything else. This
avoids permission problems due to the build and install stages being run by different users. ok deraadt jasper
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/Makefile5
-rw-r--r--src/lib/libssl/Makefile5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile
index 71c3e89fb6..8b7f00d2b9 100644
--- a/src/lib/libcrypto/Makefile
+++ b/src/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.5 2016/09/11 14:31:02 natano Exp $ 1# $OpenBSD: Makefile,v 1.6 2016/09/14 06:26:02 natano Exp $
2 2
3LIB= crypto 3LIB= crypto
4 4
@@ -431,10 +431,11 @@ distribution:
431 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 431 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
432 ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf 432 ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf
433 433
434all: ${PC_FILES}
434${PC_FILES}: opensslv.h 435${PC_FILES}: opensslv.h
435 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} 436 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
436 437
437beforeinstall: ${PC_FILES} 438beforeinstall:
438 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ 439 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
439 -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/ 440 -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/
440 441
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile
index f442bd90bb..4a5c140ed1 100644
--- a/src/lib/libssl/Makefile
+++ b/src/lib/libssl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.21 2016/09/04 09:54:25 natano Exp $ 1# $OpenBSD: Makefile,v 1.22 2016/09/14 06:26:03 natano Exp $
2 2
3SUBDIR= man 3SUBDIR= man
4PC_FILES=openssl.pc libssl.pc 4PC_FILES=openssl.pc libssl.pc
@@ -48,10 +48,11 @@ includes:
48 48
49.include <bsd.lib.mk> 49.include <bsd.lib.mk>
50 50
51all: ${PC_FILES}
51${PC_FILES}: ${.CURDIR}/../libcrypto/opensslv.h 52${PC_FILES}: ${.CURDIR}/../libcrypto/opensslv.h
52 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} 53 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
53 54
54beforeinstall: ${PC_FILES} 55beforeinstall:
55 nm -o lib${LIB}.a | egrep -w 'printf|fprintf' && \ 56 nm -o lib${LIB}.a | egrep -w 'printf|fprintf' && \
56 (echo please fix stdio usage in this library; false) || true 57 (echo please fix stdio usage in this library; false) || true
57.for p in ${PC_FILES} 58.for p in ${PC_FILES}