From ceac7d2c6e91336c8238cc1345fe787251561abb Mon Sep 17 00:00:00 2001 From: natano <> Date: Wed, 14 Sep 2016 06:26:03 +0000 Subject: 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 --- src/lib/libcrypto/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto') 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 @@ -# $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/ -- cgit v1.2.3-55-g6feb