summaryrefslogtreecommitdiff
path: root/lib/libexpat
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-09-14 06:26:04 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-09-14 06:26:04 +0000
commit964c4ac0fd69dff1441d51bd5207554bac512e29 (patch)
tree72697eafafd0fc8006839556d5875d04b75150ce /lib/libexpat
parentceb848007a2348912df73aefb9f2bb85a7c83592 (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/libexpat')
-rw-r--r--lib/libexpat/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile
index b4ae20c9f02..2e52b9ededa 100644
--- a/lib/libexpat/Makefile
+++ b/lib/libexpat/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2016/09/04 09:54:25 natano Exp $
+# $OpenBSD: Makefile,v 1.11 2016/09/14 06:26:02 natano Exp $
.PATH: ${.CURDIR}/lib
@@ -17,10 +17,11 @@ includes:
${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
${.CURDIR}/lib/expat_external.h ${DESTDIR}/usr/include/expat_external.h
+all: ${PC_FILES}
${PC_FILES}: lib/expat.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/