diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-09-14 06:26:04 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-09-14 06:26:04 +0000 |
commit | 964c4ac0fd69dff1441d51bd5207554bac512e29 (patch) | |
tree | 72697eafafd0fc8006839556d5875d04b75150ce /lib/libcrypto | |
parent | ceb848007a2348912df73aefb9f2bb85a7c83592 (diff) |
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 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcrypto/Makefile b/lib/libcrypto/Makefile index 71c3e89fb65..8b7f00d2b9b 100644 --- a/lib/libcrypto/Makefile +++ b/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2016/09/11 14:31:02 natano Exp $ +# $OpenBSD: Makefile,v 1.6 2016/09/14 06:26:02 natano Exp $ LIB= crypto @@ -431,10 +431,11 @@ distribution: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf +all: ${PC_FILES} ${PC_FILES}: opensslv.h /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} -beforeinstall: ${PC_FILES} +beforeinstall: ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/ |