summaryrefslogtreecommitdiffstats
path: root/usr.bin/cpp
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-01-04 01:50:33 +0000
committerderaadt <deraadt@openbsd.org>1996-01-04 01:50:33 +0000
commita0c6a11caedd5b43ea2027a188c4e119b00f6837 (patch)
treef96e44cd89b344c769ca36d528258187f3dd49da /usr.bin/cpp
parentmi 5380 driver (diff)
downloadwireguard-openbsd-a0c6a11caedd5b43ea2027a188c4e119b00f6837.tar.xz
wireguard-openbsd-a0c6a11caedd5b43ea2027a188c4e119b00f6837.zip
create /usr/libexec/cpp as a symbolic link
Diffstat (limited to 'usr.bin/cpp')
-rw-r--r--usr.bin/cpp/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cpp/Makefile b/usr.bin/cpp/Makefile
index 844fed8d4d4..91df434cc80 100644
--- a/usr.bin/cpp/Makefile
+++ b/usr.bin/cpp/Makefile
@@ -1,9 +1,13 @@
-# $Id: Makefile,v 1.1 1996/01/02 13:49:07 deraadt Exp $
+# $Id: Makefile,v 1.2 1996/01/04 01:50:33 deraadt Exp $
NOMAN=
beforeinstall:
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/cpp.sh ${DESTDIR}${BINDIR}/cpp
+ if [ `cc -print-libgcc-file-name` != /usr/lib/libgcc.a ]; then \
+ (cd ${DESTDIR}/usr/libexec; rm -f cpp; \
+ ln -s `cc -print-libgcc-file-name | sed -e 's/libgcc\.a/cpp/'` cpp); \
+ fi
.include <bsd.prog.mk>